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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestWebContentsObserver.java

Issue 1155713005: Use a resource throttle to implement shouldOverrideUrlLoading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add flag showing that shouldOverrideUrl cancelled the navigation Created 5 years, 7 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/test/android/javatests/src/org/chromium/content/browser/test/util/TestWebContentsObserver.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestWebContentsObserver.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestWebContentsObserver.java
index f2e0262514d3bf02fb0284be0eb83f76cf446feb..36e574a06cf63f279029dfce0fe1ccca55fc8a4b 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestWebContentsObserver.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestWebContentsObserver.java
@@ -59,8 +59,9 @@ public class TestWebContentsObserver extends WebContentsObserver {
@Override
public void didFailLoad(boolean isProvisionalLoad, boolean isMainFrame,
- int errorCode, String description, String failingUrl) {
- super.didFailLoad(isProvisionalLoad, isMainFrame, errorCode, description, failingUrl);
+ int errorCode, String description, String failingUrl, boolean wasIgnoredByHandler) {
+ super.didFailLoad(isProvisionalLoad, isMainFrame, errorCode, description, failingUrl,
+ wasIgnoredByHandler);
mOnReceivedErrorHelper.notifyCalled(errorCode, description, failingUrl);
}
}

Powered by Google App Engine
This is Rietveld 408576698