[blink] Fix MessageReceiver::OnMessage() to default to failing.
WebMessagePort::MessageReceiver::OnMessage() is documented as returning false if passed a message that it cannot handle (e.g. because it is malformed or unrecognised). The default OnMessage() implementation was instead returning true. Also tidy up the comment for OnMessage() to document only the return- false-on-failure path, since the converse (true-on-success) is implicit. Change-Id: If5f72913465aff40360d3dcc9a88fb8c10fbe237 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2300386 Auto-Submit: Wez <wez@chromium.org> Reviewed-by:Chris Hamilton <chrisha@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Wez <wez@chromium.org> Commit-Queue: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#789527}
Showing
Please register or sign in to comment