Commit 766f8929 authored by alemate@chromium.org's avatar alemate@chromium.org

ChromeOS: language indicator in the system tray doesn't come up after unlock.

This CL forces update of system tray state on new IME State even if
current input method has not changed.

BUG=406186
TEST=manual

Review URL: https://codereview.chromium.org/496993003

Cr-Commit-Position: refs/heads/master@{#291422}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291422 0039d316-1c4b-4281-b951-d872f2087c98
parent d81c3e78
......@@ -754,10 +754,16 @@ void InputMethodManagerImpl::SetState(
// indicator is used by only keyboard layout input methods.
MaybeInitializeCandidateWindowController();
if (need_update_current_input_method)
if (need_update_current_input_method) {
ChangeInputMethodInternal(state_->current_input_method,
false /* show_message */,
true /* notify_menu */);
} else {
// Update input method indicators (e.g. "US", "DV") in Chrome windows.
FOR_EACH_OBSERVER(InputMethodManager::Observer,
observers_,
InputMethodChanged(this, false /* show_message */));
}
}
}
......
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