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

Unified Diff: chrome/browser/ui/webui/chromeos/login/terms_of_service_screen_handler.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/ui/webui/chromeos/login/terms_of_service_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/terms_of_service_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/terms_of_service_screen_handler.cc
index 898827ba93709bdd583677f1ea5b0841aad59918..2feef108b619a2de8f5e21cbf8b1862b0245f289 100644
--- a/chrome/browser/ui/webui/chromeos/login/terms_of_service_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/terms_of_service_screen_handler.cc
@@ -165,8 +165,10 @@ void TermsOfServiceScreenHandler::DoShow() {
// If the user has a preferred input method, enable it and switch to it.
chromeos::input_method::InputMethodManager* input_method_manager =
chromeos::input_method::InputMethodManager::Get();
- input_method_manager->EnableInputMethod(input_methods.front());
- input_method_manager->ChangeInputMethod(input_methods.front());
+ input_method_manager->GetActiveIMEState()->EnableInputMethod(
+ input_methods.front());
+ input_method_manager->GetActiveIMEState()->ChangeInputMethod(
+ input_methods.front(), false /* show_message */);
}
// Updates the domain name shown in the UI.

Powered by Google App Engine
This is Rietveld 408576698