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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModel.java

Issue 1324293003: Revert of Refactor connection_security into SecurityStateModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModel.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModel.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModel.java
index ed3dc097cba1d46d037ddbf83f824463978c2fab..1e2d156e7e3bcb0e70db568c060e5d82c2c5d3a8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModel.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModel.java
@@ -24,6 +24,15 @@
}
private long mNativeToolbarModelAndroid;
+
+ /**
+ * @param webContents The web contents to query for deprecated SHA-1 presence.
+ * @return Whether the security level of the page was deprecated due to SHA-1.
+ */
+ public static boolean isDeprecatedSHA1Present(WebContents webContents) {
+ if (webContents == null) return false;
+ return nativeIsDeprecatedSHA1Present(webContents);
+ }
/**
* Initialize the native counterpart of this model.
@@ -60,6 +69,8 @@
return nativeWouldReplaceURL(mNativeToolbarModelAndroid);
}
+ private static native boolean nativeIsDeprecatedSHA1Present(WebContents webContents);
+
private native long nativeInit(ToolbarModelDelegate delegate);
private native void nativeDestroy(long nativeToolbarModelAndroid);
private native String nativeGetText(long nativeToolbarModelAndroid);
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698