[Spellchecker] Ensure that we don't remove uncalled RequestTextCheckCallback on Android
Mojo doesn't allow removing an uncalled mojo callback while the message pipe is still open. On Android, SpellCheckerSessionBridge::DisconnectSession() can discard pending requests while the message pipe is still open, violating the requirement. This patch fixes it by running the callbacks with empty result before removing them. Bug: 843845 Change-Id: I2ab4d51eeb43e63d9715eb42187d51656886fea5 Reviewed-on: https://chromium-review.googlesource.com/1065148Reviewed-by:Rachel Blum <groby@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#560317}
Showing
Please register or sign in to comment