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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurity.java

Issue 1169213006: Make ConnectionSecurityHelper a namespace instead of a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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/ssl/ConnectionSecurity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurityHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurity.java
similarity index 71%
rename from chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurityHelper.java
rename to chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurity.java
index 5d9b1b942fdff9259a9e1a0d1620f4f80639cc68..09340bb7a3ea2ba5b62b271000bd9e12bcfaaf8a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurityHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurity.java
@@ -9,21 +9,21 @@ import org.chromium.content_public.browser.WebContents;
/**
* Provides a way of accessing helpers for connection security levels.
*/
-public class ConnectionSecurityHelper {
+public class ConnectionSecurity {
/**
* Fetch the security level for a given web contents.
*
* @param webContents The web contents to get the security level for.
- * @return The ConnectionSecurityHelperSecurityLevel for the specified web contents.
+ * @return The ConnectionSecurityLevel for the specified web contents.
*
- * @see ConnectionSecurityHelperSecurityLevel
+ * @see ConnectionSecurityLevel
*/
public static int getSecurityLevelForWebContents(WebContents webContents) {
- if (webContents == null) return ConnectionSecurityHelperSecurityLevel.NONE;
+ if (webContents == null) return ConnectionSecurityLevel.NONE;
return nativeGetSecurityLevelForWebContents(webContents);
}
- private ConnectionSecurityHelper() {}
+ private ConnectionSecurity() {}
private static native int nativeGetSecurityLevelForWebContents(WebContents webContents);
}

Powered by Google App Engine
This is Rietveld 408576698