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

Unified Diff: android_webview/native/aw_autofill_client.cc

Issue 1659463003: [Autofill] Remove warning for CC autofill on secure pages with mixed passive content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: android_webview/native/aw_autofill_client.cc
diff --git a/android_webview/native/aw_autofill_client.cc b/android_webview/native/aw_autofill_client.cc
index b72eb14b247662754d4b7220116b3fd8bd9a0691..47bb1db5d8947a9955f3ef60aeb9c9ba17b7a861 100644
--- a/android_webview/native/aw_autofill_client.cc
+++ b/android_webview/native/aw_autofill_client.cc
@@ -192,9 +192,10 @@ bool AwAutofillClient::IsContextSecure(const GURL& form_origin) {
// Note: The implementation below is a copy of the one in
// ChromeAutofillClient::IsContextSecure, and should be kept in sync
// until crbug.com/505388 gets implemented.
- return ssl_status.security_style ==
- content::SECURITY_STYLE_AUTHENTICATED &&
- ssl_status.content_status == content::SSLStatus::NORMAL_CONTENT;
+ return ssl_status.security_style == content::SECURITY_STYLE_AUTHENTICATED &&
+ (ssl_status.content_status == content::SSLStatus::NORMAL_CONTENT ||
+ ssl_status.content_status ==
+ content::SSLStatus::DISPLAYED_INSECURE_CONTENT);
}
void AwAutofillClient::SuggestionSelected(JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698