summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-07-13 12:36:52 +0100
committerBen Murdoch <benm@google.com>2011-07-13 16:57:35 +0100
commit74b084c38a376b8c8ee24cadcc3e65bfb4b47160 (patch)
tree059767b30133481e868bb49247ae1b2cb7f84a05 /chrome
parent9f5ee29cc6202d523b1002cf85116b583156e107 (diff)
downloadexternal_chromium-74b084c38a376b8c8ee24cadcc3e65bfb4b47160.zip
external_chromium-74b084c38a376b8c8ee24cadcc3e65bfb4b47160.tar.gz
external_chromium-74b084c38a376b8c8ee24cadcc3e65bfb4b47160.tar.bz2
Implement AutofillCountry::ApplicationLocale() on Android.
Call JNI to determine the current locale for the system. Bug: 4959752 Change-Id: I6429239356842175599f1f458c77226b933a8c26
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/autofill/autofill_country.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/autofill/autofill_country.cc b/chrome/browser/autofill/autofill_country.cc
index eafcee5..dc83586 100644
--- a/chrome/browser/autofill/autofill_country.cc
+++ b/chrome/browser/autofill/autofill_country.cc
@@ -627,9 +627,7 @@ const std::string AutofillCountry::GetCountryCode(const string16& country,
// static
const std::string AutofillCountry::ApplicationLocale() {
#ifdef ANDROID
- // TODO(kristianm): Fix this in Android: http://b/issue?id=4959752
- // For now, default to en-US on Android.
- return "en-US";
+ return l10n_util::GetApplicationLocale();
#else
return g_browser_process->GetApplicationLocale();
#endif