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

Unified Diff: android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java

Issue 1193613002: Convert Android WebView to store locale .pak files as res/raw resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-extractor-init
Patch Set: rebase again Created 5 years, 6 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/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java
index 9e847c5479e6a5fd4e87606187a354a319f75f51..ddfd3b2dfddfd00edb1a6b1ab057f02180541c45 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java
@@ -8,10 +8,12 @@ import android.os.Debug;
import android.util.Log;
import org.chromium.android_webview.AwBrowserProcess;
+import org.chromium.android_webview.R;
import org.chromium.base.BaseSwitches;
import org.chromium.base.CommandLine;
import org.chromium.base.TraceEvent;
import org.chromium.content.app.ContentApplication;
+import org.chromium.ui.base.ResourceBundle;
/**
* The android_webview shell Application subclass.
@@ -43,6 +45,11 @@ public class AwShellApplication extends ContentApplication {
}
@Override
+ protected void initializeLibraryDependencies() {
+ ResourceBundle.initializeLocalePaks(this, R.array.locale_paks);
+ }
+
+ @Override
public void initCommandLine() {
throw new UnsupportedOperationException();
}

Powered by Google App Engine
This is Rietveld 408576698