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

Unified Diff: android_webview/native/aw_autofill_client.cc

Issue 2400673003: Remove SSLStatus::security_style member and content::SecurityStyle (Closed)
Patch Set: Created 4 years, 2 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 aa7f245b999d5c40e409c85cfe713c2fdb579e3a..e61544593f8f20eb033d55100c2ac9750b175fdd 100644
--- a/android_webview/native/aw_autofill_client.cc
+++ b/android_webview/native/aw_autofill_client.cc
@@ -196,7 +196,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 &&
+ return navigation_entry->GetURL().SchemeIsCryptographic() &&
estark 2016/10/06 22:00:17 This is the part that is most sketchy, IMO. AwAuto
felt 2016/10/07 03:30:47 Were these the only callers that you found? If so
estark 2016/10/07 06:34:31 The bots found another one, which is this weird ch
felt 2016/10/07 15:08:10 I've never seen that policy auditor thing before.
+ ssl_status.certificate &&
+ (!net::IsCertStatusError(ssl_status.cert_status) ||
+ net::IsCertStatusMinorError(ssl_status.cert_status)) &&
!(ssl_status.content_status &
content::SSLStatus::RAN_INSECURE_CONTENT);
}
« no previous file with comments | « no previous file | chrome/browser/ssl/bad_clock_blocking_page.cc » ('j') | chrome/browser/ssl/bad_clock_blocking_page.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698