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

Unified Diff: chrome/browser/ui/webui/options/chromeos/cros_language_options_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/options/chromeos/cros_language_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
index c4f599f8530b95b525dbcb7848ad97833a0662de..d8c5522bf05ec05082f1c17069ddd5a69603a769 100644
--- a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
@@ -90,7 +90,7 @@ void CrosLanguageOptionsHandler::GetLocalizedValues(
input_method::InputMethodManager* manager =
input_method::InputMethodManager::Get();
input_method::InputMethodDescriptors ext_ime_descriptors;
- manager->GetInputMethodExtensions(&ext_ime_descriptors);
+ manager->GetActiveIMEState()->GetInputMethodExtensions(&ext_ime_descriptors);
base::ListValue* ext_ime_list = ConvertInputMethodDescriptorsToIMEList(
ext_ime_descriptors);
@@ -229,8 +229,9 @@ void CrosLanguageOptionsHandler::InputMethodOptionsOpenCallback(
return;
const input_method::InputMethodDescriptor* ime =
- input_method::InputMethodManager::Get()->GetInputMethodFromId(
- input_method_id);
+ input_method::InputMethodManager::Get()
+ ->GetActiveIMEState()
+ ->GetInputMethodFromId(input_method_id);
if (!ime)
return;

Powered by Google App Engine
This is Rietveld 408576698