Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.cc

Issue 496993003: ChromeOS: language indicator in the system tray doesn't come up after unlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment added. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/input_method_manager_impl.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_impl.cc b/chrome/browser/chromeos/input_method/input_method_manager_impl.cc
index 6679b587b585e7ee94a2b4cd2f762fc3db7d809d..911f8fde97b5f4c8d0121abc465322ae7113e86c 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_impl.cc
+++ b/chrome/browser/chromeos/input_method/input_method_manager_impl.cc
@@ -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 */));
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698