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

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

Issue 1123943002: Move SecurityLevel into a class of its own (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert GetSecurityLevelForNonSecureFieldTrial change 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: 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 e79ce9f57d3ee0ad6a550044419d98a550dd989f..f11355cb9d786d3a13bec0eb15ecc8e0717aaed5 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
@@ -5,7 +5,6 @@
package org.chromium.chrome.browser.toolbar;
import org.chromium.base.CalledByNative;
-import org.chromium.chrome.browser.ui.toolbar.ToolbarModelSecurityLevel;
import org.chromium.content_public.browser.WebContents;
/**
@@ -27,19 +26,6 @@ public class ToolbarModel {
private long mNativeToolbarModelAndroid;
/**
- * Fetch the security level for a given web contents.
- *
- * @param webContents The web contents to get the security level for.
- * @return The ToolbarModelSecurityLevel for the specified web contents.
- *
- * @see ToolbarModelSecurityLevel
- */
- public static int getSecurityLevelForWebContents(WebContents webContents) {
- if (webContents == null) return ToolbarModelSecurityLevel.NONE;
- return nativeGetSecurityLevelForWebContents(webContents);
- }
-
- /**
* @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.
*/
@@ -89,7 +75,6 @@ public class ToolbarModel {
return nativeWouldReplaceURL(mNativeToolbarModelAndroid);
}
- private static native int nativeGetSecurityLevelForWebContents(WebContents webContents);
private static native boolean nativeIsDeprecatedSHA1Present(WebContents webContents);
private native long nativeInit(ToolbarModelDelegate delegate);

Powered by Google App Engine
This is Rietveld 408576698