Index: chrome/android/shell/javatests/src/org/chromium/chrome/shell/ChromeShellUrlTest.java |
diff --git a/chrome/android/shell/javatests/src/org/chromium/chrome/shell/ChromeShellUrlTest.java b/chrome/android/shell/javatests/src/org/chromium/chrome/shell/ChromeShellUrlTest.java |
index a7be42a7852f486ee39f5b8ae8457ebe3142ecc1..c133ec780b49a1b3deb47cb430b4aebc7f9f40cb 100644 |
--- a/chrome/android/shell/javatests/src/org/chromium/chrome/shell/ChromeShellUrlTest.java |
+++ b/chrome/android/shell/javatests/src/org/chromium/chrome/shell/ChromeShellUrlTest.java |
@@ -10,6 +10,7 @@ import org.chromium.base.ThreadUtils; |
import org.chromium.base.test.util.Feature; |
import org.chromium.content.browser.ContentViewCore; |
import org.chromium.content.browser.ContentViewRenderView; |
+import org.chromium.ui.base.WindowAndroid; |
import java.util.Locale; |
import java.util.concurrent.atomic.AtomicBoolean; |
@@ -95,14 +96,17 @@ public class ChromeShellUrlTest extends ChromeShellTestBase { |
runTestOnUiThread(new Runnable() { |
@Override |
public void run() { |
+ WindowAndroid windowAndroid = new WindowAndroid( |
+ getInstrumentation().getTargetContext().getApplicationContext()); |
ContentViewRenderView contentViewRenderView = |
new ContentViewRenderView(getInstrumentation().getTargetContext(), |
- activity.getWindowAndroid()); |
+ windowAndroid); |
contentViewRenderView.setCurrentContentViewCore( |
activity.getActiveContentViewCore()); |
} |
}); |
} catch (Throwable e) { |
+ e.printStackTrace(); |
fail("Could not create a ContentViewRenderView: " + e); |
} |
} |