diff options
| author | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 03:28:00 +0000 |
|---|---|---|
| committer | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 03:28:00 +0000 |
| commit | c1edcb29b49b191116aba51849b643fc3595d7f5 (patch) | |
| tree | f9f31b75629ef58629fe0ad3ed5a4c9e6df226d3 /chrome/browser/chromeos/options/language_config_model.cc | |
| parent | 2349bd664f65c22cb4dd360888bd4fed34093048 (diff) | |
| download | chromium_src-c1edcb29b49b191116aba51849b643fc3595d7f5.zip chromium_src-c1edcb29b49b191116aba51849b643fc3595d7f5.tar.gz chromium_src-c1edcb29b49b191116aba51849b643fc3595d7f5.tar.bz2 | |
Add EnableInputMethodsAndKeyboardLayouts function.
I'll use the function to implement crosbug.com/2619 (Implement input language selector on the log in page)
BUG=none
Review URL: http://codereview.chromium.org/2861022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/options/language_config_model.cc')
| -rw-r--r-- | chrome/browser/chromeos/options/language_config_model.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/options/language_config_model.cc b/chrome/browser/chromeos/options/language_config_model.cc index 4b256ba..6955c43 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( |
