| Index: chrome/browser/chromeos/cros/input_method_library.cc
|
| diff --git a/chrome/browser/chromeos/cros/input_method_library.cc b/chrome/browser/chromeos/cros/input_method_library.cc
|
| index c62c3fdc2248312154e14f60d0a584a958ef3bbd..861230a0f502eb16827fb30c61578d8697c7a9f7 100644
|
| --- a/chrome/browser/chromeos/cros/input_method_library.cc
|
| +++ b/chrome/browser/chromeos/cros/input_method_library.cc
|
| @@ -578,11 +578,19 @@ class InputMethodLibraryImpl : public InputMethodLibrary,
|
| // actually changes the XKB layout will not be called.
|
| CrosLibrary::Get()->GetKeyboardLibrary()->SetCurrentKeyboardLayoutByName(
|
| chromeos::input_method::GetKeyboardLayoutName(xkb_engine_name));
|
| - kill(ibus_daemon_process_id_, SIGTERM);
|
| + if (!chromeos::StopInputMethodProcess(input_method_status_connection_)) {
|
| + LOG(ERROR) << "StopInputMethodProcess IPC failed. Sending SIGTERM to "
|
| + << "PID " << ibus_daemon_process_id_;
|
| + kill(ibus_daemon_process_id_, SIGTERM);
|
| + }
|
| + VLOG(1) << "ibus-daemon (PID=" << ibus_daemon_process_id_ << ") is "
|
| + << "terminated";
|
| ibus_daemon_process_id_ = 0;
|
| }
|
| if (candidate_window_process_id_) {
|
| kill(candidate_window_process_id_, SIGTERM);
|
| + VLOG(1) << "candidate_window (PID=" << candidate_window_process_id_
|
| + << ") is terminated";
|
| candidate_window_process_id_ = 0;
|
| }
|
| }
|
|
|