Index: chrome/browser/ssl/connection_security_android.cc |
diff --git a/chrome/browser/ssl/connection_security_android.cc b/chrome/browser/ssl/connection_security_android.cc |
index 1d3c056ffede69d6889fd486c8b44e2db090eb96..b6a829ae93db84382aa7d34388a94b5c96094dc2 100644 |
--- a/chrome/browser/ssl/connection_security_android.cc |
+++ b/chrome/browser/ssl/connection_security_android.cc |
@@ -18,8 +18,13 @@ bool RegisterConnectionSecurityAndroid(JNIEnv* env) { |
jint GetSecurityLevelForWebContents(JNIEnv* env, |
jclass jcaller, |
jobject jweb_contents) { |
+#if !defined(USE_AURA) |
content::WebContents* web_contents = |
content::WebContents::FromJavaWebContents(jweb_contents); |
DCHECK(web_contents); |
return connection_security::GetSecurityLevelForWebContents(web_contents); |
+#else |
+ return 1; |
+#endif |
+ |
} |