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 38181b5f2efb89259904334c4c2a2ebac2d0903c..e2242301e753f08e2604b7c791c5ec05fda71593 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 |
@@ -184,7 +184,8 @@ public class ModalDialogTest extends ChromeShellTestBase { |
"Stay on this page"); |
clickCancel(jsDialog); |
- assertEquals(BEFORE_UNLOAD_URL, getActivity().getActiveContentViewCore().getUrl()); |
+ assertEquals(BEFORE_UNLOAD_URL, getActivity().getActiveContentViewCore() |
+ .getWebContents().getUrl()); |
executeJavaScriptAndWaitForDialog("history.back();"); |
jsDialog = getCurrentDialog(); |
@@ -198,7 +199,8 @@ public class ModalDialogTest extends ChromeShellTestBase { |
int callCount = onPageLoaded.getCallCount(); |
clickOk(jsDialog); |
onPageLoaded.waitForCallback(callCount); |
- assertEquals(EMPTY_PAGE, getActivity().getActiveContentViewCore().getUrl()); |
+ assertEquals(EMPTY_PAGE, getActivity().getActiveContentViewCore() |
+ .getWebContents().getUrl()); |
} |
/** |