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

Unified Diff: chrome/browser/ui/webui/chromeos/login/l10n_util.cc

Issue 614773003: Revert of GetUILanguageList should correctly handle locale aliases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/l10n_util.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/l10n_util.cc b/chrome/browser/ui/webui/chromeos/login/l10n_util.cc
index 301bc773193fd42cc197bd8ceb09eebe87e12b21..d71427cd0c61d86c1efb215785e936cb3c4576f9 100644
--- a/chrome/browser/ui/webui/chromeos/login/l10n_util.cc
+++ b/chrome/browser/ui/webui/chromeos/login/l10n_util.cc
@@ -167,18 +167,7 @@
if (std::find(base_language_codes.begin(),
base_language_codes.end(),
*it) == base_language_codes.end()) {
- // Try to translate language code and look up again.
- std::string resolved_locale;
-
- if (!l10n_util::CheckAndResolveLocale(*it, &resolved_locale))
- continue;
-
- if (std::find(base_language_codes.begin(),
- base_language_codes.end(),
- resolved_locale) == base_language_codes.end()) {
- continue;
- }
- // Translated language was successfully found.
+ continue;
}
const base::string16 display_name =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698