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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java

Issue 2076623002: 🍳 Fix and clean up application context in webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wrap context. Created 4 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/javatests/src/org/chromium/android_webview/test/AwTestBase.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java
index d45839269ee63ba8993e67325e7f6cdebaa09c20..f14ba481ec0a694068d6e4695e61d8ccf353d578 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java
@@ -90,11 +90,12 @@ public class AwTestBase
}
protected void startBrowserProcess() throws Exception {
- final Context context = getActivity();
+ // The activity must be launched in order for proper webview statics to be setup.
+ getActivity();
getInstrumentation().runOnMainSync(new Runnable() {
@Override
public void run() {
- AwBrowserProcess.start(context);
+ AwBrowserProcess.start();
}
});
}

Powered by Google App Engine
This is Rietveld 408576698