Index: chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java |
index e2242301e753f08e2604b7c791c5ec05fda71593..3eb42e6c7aa83f85efbcaefb4f7a364e88d0af93 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java |
@@ -265,7 +265,7 @@ public class ModalDialogTest extends ChromeShellTestBase { |
clickCancel(jsDialog); |
scriptEvent.waitUntilHasValue(); |
- scriptEvent.evaluateJavaScript(getActivity().getActiveContentViewCore(), |
+ scriptEvent.evaluateJavaScript(getActivity().getActiveContentViewCore().getWebContents(), |
"alert('Android');"); |
assertTrue("No further dialog boxes should be shown.", scriptEvent.waitUntilHasValue()); |
} |
@@ -310,7 +310,7 @@ public class ModalDialogTest extends ChromeShellTestBase { |
private OnEvaluateJavaScriptResultHelper executeJavaScriptAndWaitForDialog( |
final OnEvaluateJavaScriptResultHelper helper, String script) |
throws InterruptedException { |
- helper.evaluateJavaScript(getActivity().getActiveContentViewCore(), |
+ helper.evaluateJavaScript(getActivity().getActiveContentViewCore().getWebContents(), |
script); |
boolean criteriaSatisfied = CriteriaHelper.pollForCriteria( |
new JavascriptAppModalDialogShownCriteria(true)); |