[Spellchecker] Clear RequestTextCheckCallback safely in case Java object initialization fails
Mojo doesn't allow removing an uncalled mojo callback while the message pipe is still open. On Android, SpellCheckerSessionBridge::RequestTextCheck() discards an incoming request if it fails to initialize the Java object. In this case, this patch replies the request with empty result so Mojo requirements are ensured. Bug: 848483 Change-Id: Ic4e1528dd65d152ad522aa3eb49c76f90a4e66b9 Reviewed-on: https://chromium-review.googlesource.com/1093962Reviewed-by:Rachel Blum <groby@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#567813}
Showing
Please register or sign in to comment