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

Unified Diff: chrome/browser/chromeos/extensions/input_method_apitest_chromeos.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_apitest_chromeos.cc
diff --git a/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc b/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
index c8e0a343e69f7fbdafd6b8cc099e2d79cf992587..c462fca9274c6c04e613512b03d56f0285d43be9 100644
--- a/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
+++ b/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
@@ -30,7 +30,7 @@ const char kBackgroundReady[] = "ready";
// Class that listens for the JS message.
class TestListener : public content::NotificationObserver {
public:
- explicit TestListener() {
+ TestListener() {
registrar_.Add(this,
extensions::NOTIFICATION_EXTENSION_TEST_MESSAGE,
content::NotificationService::AllSources());
@@ -54,7 +54,8 @@ class TestListener : public content::NotificationObserver {
keyboard_layouts.push_back(
chromeos::extension_ime_util::GetInputMethodIDByEngineID(
kInitialInputMethodOnLoginScreen));
- manager->EnableLoginLayouts(kLoginScreenUILanguage, keyboard_layouts);
+ manager->GetActiveIMEState()->EnableLoginLayouts(kLoginScreenUILanguage,
+ keyboard_layouts);
}
}

Powered by Google App Engine
This is Rietveld 408576698