Index: base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java |
diff --git a/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java b/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java |
index a48c4ab71301190bef89adf33a2a056832068600..fcd60869866f239ecda1d7efc821c5434cb6e579 100644 |
--- a/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java |
+++ b/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java |
@@ -4,8 +4,7 @@ |
package org.chromium.base.test; |
-import android.app.Application; |
-import android.content.Context; |
+import android.os.Bundle; |
import android.support.test.runner.AndroidJUnitRunner; |
import org.chromium.base.multidex.ChromiumMultiDexInstaller; |
@@ -19,11 +18,8 @@ |
*/ |
public class BaseChromiumAndroidJUnitRunner extends AndroidJUnitRunner { |
@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); |
} |
} |