ime: Fix IME service disconnection bug.
When the system PK feature flag is enabled, NativeInputMethodEngine will connect to the IME service. NativeInputMethodEngine is itself a Receiver that receives Mojo calls from the IME service. The IME service frequently calls ProcessMessage on the Mojo interface, but NativeInputMethodEngine doesn't handle it on purpose (ProcessMessage is only used by the IME extension). However, NativeInputMethodEngine:: ProcessMessage must invoke the callback, or else the connection will drop [1]. Hence, NativeInputMethodEngine::ProcessMessage should ignore all messages but still run the callback to avoid dropping the connection. [1] https://source.chromium.org/chromium/chromium/src/+/master:mojo/public/cpp/bindings/tests/receiver_callback_unittest.cc;l=292;drc=9c82b0a2f6742e35cb0368ba61568ce0522dd1ec Bug: 1019541 Change-Id: Ie66c32fde279c441513d99607db2f54c2fd4ef51 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2410102Reviewed-by:Leo Zhang <googleo@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#810492}
Showing
Please register or sign in to comment