Commit e3fa0233 authored by Leo Zhang's avatar Leo Zhang Committed by Commit Bot

Close IME Mojo service on disconneciton.

We should release the Utility process when the last client is gone.

Bug: 837156
Change-Id: I66dc753d45a43455dc8cd4a8e759436ec330624a
Reviewed-on: https://chromium-review.googlesource.com/c/1349159Reviewed-by: default avatarShu Chen <shuchen@chromium.org>
Commit-Queue: Shu Chen <shuchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610552}
parent 7202f4dc
...@@ -62,6 +62,7 @@ void ImeService::BindInputEngineManagerRequest( ...@@ -62,6 +62,7 @@ void ImeService::BindInputEngineManagerRequest(
void ImeService::OnConnectionLost() { void ImeService::OnConnectionLost() {
if (engine_manager_bindings_.empty()) { if (engine_manager_bindings_.empty()) {
service_binding_.RequestClose();
// TODO(https://crbug.com/837156): Set a timer to start a cleanup. // TODO(https://crbug.com/837156): Set a timer to start a cleanup.
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment