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

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

Issue 1879013002: 🍈 Unify application context usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove @CalledByNative Created 4 years, 8 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/CookieManagerStartupTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java
index 65051028cb3e980278ee13c1eca6ce1460189829..d281f8614512c3099cbc2624fbac66ea2b271ba3 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java
@@ -30,8 +30,10 @@ public class CookieManagerStartupTest extends AwTestBase {
@Override
protected void setUp() throws Exception {
super.setUp();
- ContextUtils.initApplicationContext(getActivity().getApplicationContext());
- }
+ Context appContext = getInstrumentation().getTargetContext().getApplicationContext();
+ ContextUtils.initApplicationContext(appContext);
Yaron 2016/04/25 14:09:45 I'm not familiar enough with aw setup but possibly
Peter Wen 2016/04/25 15:30:30 Move the context stuff to AwTestBase, though I bel
+ AwBrowserProcess.loadLibrary(appContext);
+ };
@Override
protected boolean needsBrowserProcessStarted() {

Powered by Google App Engine
This is Rietveld 408576698