Index: base/test/android/javatests/src/org/chromium/base/test/BaseChromiumInstrumentationTestRunner.java |
diff --git a/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumInstrumentationTestRunner.java b/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumInstrumentationTestRunner.java |
index 693bb6261eda3792a3a31c83798609e7c388492d..d44c9ddce6dd080d252e30d85864d07db8985afa 100644 |
--- a/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumInstrumentationTestRunner.java |
+++ b/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumInstrumentationTestRunner.java |
@@ -4,8 +4,7 @@ |
package org.chromium.base.test; |
-import android.app.Application; |
-import android.content.Context; |
+import android.os.Bundle; |
import org.chromium.base.multidex.ChromiumMultiDexInstaller; |
import org.chromium.base.test.util.CommandLineFlags; |
@@ -17,12 +16,9 @@ |
*/ |
public class BaseChromiumInstrumentationTestRunner extends BaseInstrumentationTestRunner { |
@Override |
- public Application newApplication(ClassLoader cl, String className, Context context) |
- throws ClassNotFoundException, IllegalAccessException, InstantiationException { |
- ChromiumMultiDexInstaller.install(new BaseChromiumRunnerCommon.MultiDexContextWrapper( |
- getContext(), getTargetContext())); |
- BaseChromiumRunnerCommon.reorderDexPathElements(cl, getContext(), getTargetContext()); |
- return super.newApplication(cl, className, context); |
+ public void onCreate(Bundle arguments) { |
+ ChromiumMultiDexInstaller.install(getTargetContext()); |
+ super.onCreate(arguments); |
} |
/** |