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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

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: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index afbb0926d606d4193f8fdc32546768171954e942..b866c302100674734d4ce888d43ac3dc99a3a9e2 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -693,7 +693,7 @@ public class AwContents implements SmartClipProvider,
@Override
public void onConfigurationChanged(Configuration configuration) {
- setLocale(LocaleUtils.getLocale(configuration.locale));
+ setLocale(LocaleUtils.toLanguageTag(configuration.locale));
mSettings.updateAcceptLanguages();
}
};
@@ -729,7 +729,7 @@ public class AwContents implements SmartClipProvider,
InternalAccessDelegate internalAccessAdapter,
NativeDrawGLFunctorFactory nativeDrawGLFunctorFactory, AwContentsClient contentsClient,
AwSettings settings, DependencyFactory dependencyFactory) {
- setLocale(LocaleUtils.getDefaultLocale());
+ setLocale(LocaleUtils.getDefaultLocaleString());
settings.updateAcceptLanguages();
mBrowserContext = browserContext;
@@ -3137,7 +3137,7 @@ public class AwContents implements SmartClipProvider,
postUpdateContentViewCoreVisibility();
mCurrentFunctor.onAttachedToWindow();
- setLocale(LocaleUtils.getDefaultLocale());
+ setLocale(LocaleUtils.getDefaultLocaleString());
mSettings.updateAcceptLanguages();
if (mComponentCallbacks != null) return;

Powered by Google App Engine
This is Rietveld 408576698