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

Unified Diff: chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc

Issue 23297004: Remove ExtraLanguage entries from InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove obsolete tests. Created 7 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 25fecc1a3d344bed2704c938c8da078007035363..e04df15b2292c7c61803da93fa6d60db68653a80 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
@@ -165,13 +165,6 @@ ListValue* CrosLanguageOptionsHandler::GetInputMethodList(
for (size_t i = 0; i < descriptor.language_codes().size(); ++i) {
languages->SetBoolean(descriptor.language_codes().at(i), true);
}
- // Check extra languages to see if there are languages associated with
- // this input method. If these are present, add these.
- const std::vector<std::string> extra_language_codes =
- manager->GetInputMethodUtil()->GetExtraLanguageCodesFromId(
- descriptor.id());
- for (size_t j = 0; j < extra_language_codes.size(); ++j)
- languages->SetBoolean(extra_language_codes[j], true);
dictionary->Set("languageCodeSet", languages);
input_method_list->Append(dictionary);
@@ -195,12 +188,6 @@ ListValue* CrosLanguageOptionsHandler::GetLanguageListInternal(
for (size_t i = 0; i < languages.size(); ++i)
language_codes.insert(languages[i]);
}
- // Collect the language codes from extra languages.
- const std::vector<std::string> extra_language_codes =
- input_method::InputMethodManager::Get()->GetInputMethodUtil()
- ->GetExtraLanguageCodeList();
- for (size_t i = 0; i < extra_language_codes.size(); ++i)
- language_codes.insert(extra_language_codes[i]);
// Map of display name -> {language code, native_display_name}.
// In theory, we should be able to create a map that is sorted by

Powered by Google App Engine
This is Rietveld 408576698