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

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

Issue 1262393003: [Android WebView] Move browser-side initialization out from Application (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 5 years, 5 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
« no previous file with comments | « android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
index b36ca16e79077de338b5da1aaab034c81f8d940e..d87b6302986a60a3198532bfbb40e40e25118cbc 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
@@ -11,6 +11,9 @@ import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
+import org.chromium.android_webview.AwBrowserProcess;
+import org.chromium.android_webview.shell.AwShellResourceProvider;
+
/**
* This is a lightweight activity for tests that only require WebView functionality.
*/
@@ -24,6 +27,9 @@ public class AwTestRunnerActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ AwShellResourceProvider.registerResources(this);
+ AwBrowserProcess.loadLibrary(this);
+
mLinearLayout = new LinearLayout(this);
mLinearLayout.setOrientation(LinearLayout.VERTICAL);
mLinearLayout.setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);
« no previous file with comments | « android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698