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

Unified Diff: ui/base/l10n/l10n_util.cc

Issue 2406203002: Use BCP47 compliant format for locale representation (Closed)
Patch Set: BCP 47, change in description Created 4 years, 2 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 | « chromecast/browser/cast_http_user_agent_settings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util.cc
diff --git a/ui/base/l10n/l10n_util.cc b/ui/base/l10n/l10n_util.cc
index 0f40495d4fed6b69c757a17cd52e5ff8f540dd0f..47001b4ae69b7886336058d14ec5066257d28273 100644
--- a/ui/base/l10n/l10n_util.cc
+++ b/ui/base/l10n/l10n_util.cc
@@ -459,7 +459,7 @@ std::string GetApplicationLocaleInternal(const std::string& pref_locale) {
#elif defined(OS_ANDROID)
// On Android, query java.util.Locale for the default locale.
- candidates.push_back(base::android::GetDefaultLocale());
+ candidates.push_back(base::android::GetDefaultLocaleString());
#elif defined(USE_GLIB) && !defined(OS_CHROMEOS)
« no previous file with comments | « chromecast/browser/cast_http_user_agent_settings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698