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: mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java

Issue 2247143004: Remove app context init from LibraryLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix per review. Created 4 years, 3 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: mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java
diff --git a/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java b/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java
index c7348caa2c080d6d4c9cc9b9ce0da2337d0da06e..f4d7ab72366bb8529b29f71dcff3a9abda739418 100644
--- a/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java
+++ b/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java
@@ -4,7 +4,6 @@
package org.chromium.mojo;
-import android.content.Context;
import android.test.InstrumentationTestCase;
import org.chromium.base.ContextUtils;
@@ -26,9 +25,9 @@ public class MojoTestCase extends InstrumentationTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- Context appContext = getInstrumentation().getTargetContext().getApplicationContext();
- ContextUtils.initApplicationContext(appContext);
- LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER).ensureInitialized(appContext);
+ ContextUtils.initApplicationContext(
+ getInstrumentation().getTargetContext().getApplicationContext());
+ LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER).ensureInitialized();
nativeInit();
mTestEnvironmentPointer = nativeSetupTestEnvironment();
}

Powered by Google App Engine
This is Rietveld 408576698