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

Unified Diff: base/android/locale_utils.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
Index: base/android/locale_utils.cc
diff --git a/base/android/locale_utils.cc b/base/android/locale_utils.cc
index 30879bbbb5727df231c86ae7b7fcee26a143694d..b3a2346366c0b66936f3927b640a2e5e8dfa3083 100644
--- a/base/android/locale_utils.cc
+++ b/base/android/locale_utils.cc
@@ -16,10 +16,10 @@ std::string GetDefaultCountryCode() {
return ConvertJavaStringToUTF8(Java_LocaleUtils_getDefaultCountryCode(env));
}
-std::string GetDefaultLocale() {
+std::string GetDefaultLocaleString() {
JNIEnv* env = base::android::AttachCurrentThread();
- ScopedJavaLocalRef<jstring> locale = Java_LocaleUtils_getDefaultLocale(
- env);
+ ScopedJavaLocalRef<jstring> locale =
+ Java_LocaleUtils_getDefaultLocaleString(env);
return ConvertJavaStringToUTF8(locale);
}
« no previous file with comments | « base/android/locale_utils.h ('k') | chrome/android/java/src/org/chromium/chrome/browser/ChromeActivitySessionTracker.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698