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

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

Issue 2406203002: Use BCP47 compliant format for locale representation (Closed)
Patch Set: cleanup LocaleUtils, update codes that are not reverted from "rebase master" 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 a21d244fd978a3570cf0eac90c6aaed2b7d85eee..cf36a439a055bdad48d446b322c668a510675841 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -705,7 +705,7 @@ public class AwContents implements SmartClipProvider,
@Override
public void onConfigurationChanged(Configuration configuration) {
- setLocale(LocaleUtils.getLocale(configuration.locale));
+ setLocale(LocaleUtils.getLocaleString(configuration.locale));
mSettings.updateAcceptLanguages();
}
};
@@ -741,7 +741,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;
@@ -3149,7 +3149,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