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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java

Issue 2603823002: Prohibit web payments on sites with bad SSL certificates (Closed)
Patch Set: Created 3 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: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
index cc33b2dac09e8da12217a110430cce8147bc3c13..e3f2d96c70d24de602581da0891be72ee5121bce 100644
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
@@ -462,6 +462,11 @@ import java.util.UUID;
nativeDismissTextHandles(mNativeWebContentsAndroid);
}
+ @Override
+ public boolean isContextSecure() {
+ return nativeIsContextSecure(mNativeWebContentsAndroid);
+ }
+
@CalledByNative
private final void setMediaSession(MediaSessionImpl mediaSession) {
mMediaSession = mediaSession;
@@ -549,4 +554,5 @@ import java.util.UUID;
String url, boolean isFavicon, int maxBitmapSize,
boolean bypassCache, ImageDownloadCallback callback);
private native void nativeDismissTextHandles(long nativeWebContentsAndroid);
+ private native boolean nativeIsContextSecure(long nativeWebContentsAndroid);
}

Powered by Google App Engine
This is Rietveld 408576698