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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/WebContentsObserverAndroidTest.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/WebContentsObserverAndroidTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/WebContentsObserverAndroidTest.java b/content/public/android/javatests/src/org/chromium/content/browser/WebContentsObserverAndroidTest.java
index c6dab26384ef445c5c453dbd5e0f78be08541fea..e5084a37ec41723156213dab061d8b556b4c0ec2 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/WebContentsObserverAndroidTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/WebContentsObserverAndroidTest.java
@@ -67,7 +67,8 @@ public class WebContentsObserverAndroidTest extends ContentShellTestBase {
getInstrumentation().runOnMainSync(new Runnable() {
@Override
public void run() {
- getContentViewCore().loadUrl(new LoadUrlParams(URL));
+ getContentViewCore().getWebContents().getNavigationController()
+ .loadUrl(new LoadUrlParams(URL));
}
});
observer.getDidFirstVisuallyNonEmptyPaintCallbackHelper().waitForCallback(callCount);

Powered by Google App Engine
This is Rietveld 408576698