| 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);
|
|
|