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

Unified Diff: chrome/browser/chromeos/options/language_config_model.cc

Issue 2861022: Add EnableInputMethodsAndKeyboardLayouts function (Closed)
Patch Set: fix Created 10 years, 6 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
« no previous file with comments | « chrome/browser/chromeos/language_preferences.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/options/language_config_model.cc
diff --git a/chrome/browser/chromeos/options/language_config_model.cc b/chrome/browser/chromeos/options/language_config_model.cc
index 4b256ba814640a5f15a75a36107bb25e204ae6eb..6955c43d169fea2ee4c899bf7c1832e6dc78fee1 100644
--- a/chrome/browser/chromeos/options/language_config_model.cc
+++ b/chrome/browser/chromeos/options/language_config_model.cc
@@ -92,7 +92,7 @@ size_t LanguageConfigModel::CountNumActiveInputMethods(
int num_selected_active_input_methods = 0;
std::vector<std::string> input_method_ids;
input_method::GetInputMethodIdsFromLanguageCode(
- language_code, false /* keyboard_layout_only */, &input_method_ids);
+ language_code, input_method::kKeyboardLayoutsOnly, &input_method_ids);
for (size_t i = 0; i < input_method_ids.size(); ++i) {
if (InputMethodIsActivated(input_method_ids[i])) {
++num_selected_active_input_methods;
@@ -198,7 +198,7 @@ void LanguageConfigModel::GetInputMethodIdsFromLanguageCode(
DCHECK(input_method_ids);
input_method_ids->clear();
input_method::GetInputMethodIdsFromLanguageCode(
- language_code, false /* keyboard_layout_only */, input_method_ids);
+ language_code, input_method::kAllInputMethods, input_method_ids);
// Reorder the input methods.
input_method::ReorderInputMethodIdsForLanguageCode(
« no previous file with comments | « chrome/browser/chromeos/language_preferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698