Mojo: Change CHECK() on message length to CHECK_LT()

Crash reports from users indicate we sometimes try to send messages
that are too large.  We have code to keep this from happening, but
the code is brittle and apparently some cases can get through.

It would help to know what the relative values are to understand how
our estimates are failing, so change this from CHECK() to CHECK_LT().

Bug: 717812
Bug: 901269
Change-Id: Ic511dae1ea5d96dcb9937fff1207976a40a903f2
Reviewed-on: https://chromium-review.googlesource.com/c/1324091
Reviewed-by: Ken Rockot <rockot@google.com>
Commit-Queue: Chase Phillips <cmp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606158}
1 file changed