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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java

Issue 481803004: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments and rebased the patch. Created 6 years, 3 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: content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java b/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
index ed8ec2365c924c822e8318e71e81d2b500b9db4d..71e127840fe78b31011ef33d95f691772314cca8 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
@@ -125,8 +125,9 @@ public class GestureDetectorResetTest extends ContentShellTestBase {
getInstrumentation().runOnMainSync(new Runnable() {
@Override
public void run() {
- getActivity().getActiveShell().getContentViewCore().loadUrl(
- new LoadUrlParams(CLICK_TEST_URL));
+ getActivity().getActiveShell().getContentViewCore().getWebContents()
+ .getNavigationController().loadUrl(
+ new LoadUrlParams(CLICK_TEST_URL));
}
});
onPageFinishedHelper.waitForCallback(currentCallCount, 1,

Powered by Google App Engine
This is Rietveld 408576698