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

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

Issue 419293002: IME refactoring: ChromeOS introduce input methods State. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test fixed. Re-sorted methods of StateImpl and IMM. 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/accessibility.cc
diff --git a/chrome/browser/chromeos/input_method/accessibility.cc b/chrome/browser/chromeos/input_method/accessibility.cc
index 1f19e4f8c409a60e94b501c8c605d815324ad799..031e733e5024d915ab296912a5d5a3ef90132c69 100644
--- a/chrome/browser/chromeos/input_method/accessibility.cc
+++ b/chrome/browser/chromeos/input_method/accessibility.cc
@@ -31,7 +31,8 @@ void Accessibility::InputMethodChanged(InputMethodManager* imm,
return;
// Get the medium name of the changed input method (e.g. US, INTL, etc.)
- const InputMethodDescriptor descriptor = imm_->GetCurrentInputMethod();
+ const InputMethodDescriptor descriptor =
+ imm_->GetActiveIMEState()->GetCurrentInputMethod();
const std::string medium_name = base::UTF16ToUTF8(
imm_->GetInputMethodUtil()->GetInputMethodMediumName(descriptor));

Powered by Google App Engine
This is Rietveld 408576698