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

Unified Diff: chrome/browser/chromeos/extensions/input_method_event_router.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/extensions/input_method_event_router.cc
diff --git a/chrome/browser/chromeos/extensions/input_method_event_router.cc b/chrome/browser/chromeos/extensions/input_method_event_router.cc
index c56ec803f8c5331cf79bfd0a318568584f3d1172..c265529c67a9c32654239ee1c5f0b46af607867a 100644
--- a/chrome/browser/chromeos/extensions/input_method_event_router.cc
+++ b/chrome/browser/chromeos/extensions/input_method_event_router.cc
@@ -36,9 +36,9 @@ void ExtensionInputMethodEventRouter::InputMethodChanged(
}
scoped_ptr<base::ListValue> args(new base::ListValue());
- base::StringValue *input_method_name = new base::StringValue(
- extensions::InputMethodAPI::GetInputMethodForXkb(
- manager->GetCurrentInputMethod().id()));
+ base::StringValue* input_method_name =
+ new base::StringValue(extensions::InputMethodAPI::GetInputMethodForXkb(
+ manager->GetActiveIMEState()->GetCurrentInputMethod().id()));
args->Append(input_method_name);
// The router will only send the event to extensions that are listening.

Powered by Google App Engine
This is Rietveld 408576698