Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java

Issue 572013002: Removing ContentViewCore dependencies from direct WebContents functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch and addressed review comments. Created 6 years, 2 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: 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));

Powered by Google App Engine
This is Rietveld 408576698