Index: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
index 4ba3cc99d2878674dba0bf9d6623f24507626ad9..186f77a8dc671894e9289567dde21be54c2e0315 100644 |
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
@@ -86,7 +86,7 @@ public class ContentShellTestBase extends ActivityInstrumentationTestCase2<Conte |
launchContentShellWithUrl(UrlUtils.getTestFileUrl(url)); |
assertNotNull(getActivity()); |
assertTrue(waitForActiveShellToBeDoneLoading()); |
- assertEquals(UrlUtils.getTestFileUrl(url), getContentViewCore().getUrl()); |
+ assertEquals(UrlUtils.getTestFileUrl(url), getContentViewCore().getWebContents().getUrl()); |
} |
/** |
@@ -138,7 +138,8 @@ public class ContentShellTestBase extends ActivityInstrumentationTestCase2<Conte |
// loading because it has no URL set yet. The second is that |
// we've set a URL and it actually is loading. |
isLoaded.set(!shell.isLoading() |
- && !TextUtils.isEmpty(shell.getContentViewCore().getUrl())); |
+ && !TextUtils.isEmpty(shell.getContentViewCore() |
+ .getWebContents().getUrl())); |
} else { |
isLoaded.set(false); |
} |
@@ -168,7 +169,7 @@ public class ContentShellTestBase extends ActivityInstrumentationTestCase2<Conte |
new Runnable() { |
@Override |
public void run() { |
- viewCore.loadUrl(params); |
+ viewCore.getWebContents().getNavigationController().loadUrl(params); |
} |
}); |
} |