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

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

Issue 419293002: IME refactoring: ChromeOS introduce input methods State. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. 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
Index: chrome/browser/chromeos/input_method/mode_indicator_controller.cc
diff --git a/chrome/browser/chromeos/input_method/mode_indicator_controller.cc b/chrome/browser/chromeos/input_method/mode_indicator_controller.cc
index 716cb08969c8782caee9b5a5cb4f98d619d685d2..30bcc4ef6344b0964ab04c074494c98ffe332f36 100644
--- a/chrome/browser/chromeos/input_method/mode_indicator_controller.cc
+++ b/chrome/browser/chromeos/input_method/mode_indicator_controller.cc
@@ -100,7 +100,8 @@ void ModeIndicatorController::ShowModeIndicator() {
return;
// Get the short name of the changed input method (e.g. US, JA, etc.)
- const InputMethodDescriptor descriptor = imm_->GetCurrentInputMethod();
+ const InputMethodDescriptor descriptor =
+ imm_->GetActiveIMEState()->GetCurrentInputMethod();
const base::string16 short_name =
imm_->GetInputMethodUtil()->GetInputMethodShortName(descriptor);

Powered by Google App Engine
This is Rietveld 408576698