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

Unified Diff: chrome/browser/ui/android/toolbar/toolbar_model_android.cc

Issue 1123943002: Move SecurityLevel into a class of its own (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove SecurityLevel enum explicit values 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/browser/ui/android/toolbar/toolbar_model_android.cc
diff --git a/chrome/browser/ui/android/toolbar/toolbar_model_android.cc b/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
index cd4ffb862c969e57a0e3d42d90b7f67081d668d5..9bcf2b162f75508c495a64d47751da7fe5f69f5a 100644
--- a/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
+++ b/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
@@ -83,16 +83,6 @@ jlong Init(JNIEnv* env, jobject obj, jobject delegate) {
return reinterpret_cast<intptr_t>(toolbar_model);
}
-// static
-jint GetSecurityLevelForWebContents(JNIEnv* env,
- jclass jcaller,
- jobject jweb_contents) {
- content::WebContents* web_contents =
- content::WebContents::FromJavaWebContents(jweb_contents);
- DCHECK(web_contents);
- return ToolbarModelImpl::GetSecurityLevelForWebContents(web_contents);
-}
-
// Temporary method to allow us to surface a SHA-1 deprecation string on Android
// in M42. This duplicates a subset of the logic from
// ToolbarModelImpl::GetSecurityLevelForWebContents() and

Powered by Google App Engine
This is Rietveld 408576698