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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java

Issue 1530183004: Revert 3 CLs for shouldOverrideUrlLoading implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (simple conflict in AwContentsClientShouldOverrideUrlLoadingTest). Created 4 years, 11 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: android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java b/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
index efca3d0c864c3769fc14935cc7ddc18caa76b8e3..8c29c2d93c5da1bc281558729b6c53251bc49a72 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
@@ -250,6 +250,13 @@ public class AwContentsClientBridge {
mClient.handleJsBeforeUnload(url, message, handler);
}
+ @CalledByNative
+ private boolean shouldOverrideUrlLoading(
+ String url, boolean hasUserGesture, boolean isRedirect, boolean isMainFrame) {
+ return mClient.shouldIgnoreNavigation(
+ mContext, url, isMainFrame, hasUserGesture, isRedirect);
+ }
+
void confirmJsResult(int id, String prompt) {
if (mNativeContentsClientBridge == 0) return;
nativeConfirmJsResult(mNativeContentsClientBridge, id, prompt);

Powered by Google App Engine
This is Rietveld 408576698