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

Unified Diff: android_webview/native/aw_autofill_client.cc

Issue 1649293004: [Merge M49][Autofill] Remove warning for CC autofill on secure pages with mixed passive content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cb7b64637ff13f1550d37177745a5f63b894903a 100644
--- a/android_webview/native/aw_autofill_client.cc
+++ b/android_webview/native/aw_autofill_client.cc
@@ -192,9 +192,9 @@ 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::RAN_INSECURE_CONTENT);
}
void AwAutofillClient::SuggestionSelected(JNIEnv* env,
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698