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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 2603823002: Prohibit web payments on sites with bad SSL certificates (Closed)
Patch Set: Created 3 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: chrome/browser/ui/autofill/chrome_autofill_client.cc
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc
index 6f0db86ef991485b12f7f5100148d77fb77be3e3..1ac8b15175a9bbc89effc5146d0bfdc8e94108b2 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -355,21 +355,7 @@ void ChromeAutofillClient::OnFirstUserGestureObserved() {
}
bool ChromeAutofillClient::IsContextSecure(const GURL& form_origin) {
- content::SSLStatus ssl_status;
- content::NavigationEntry* navigation_entry =
- web_contents()->GetController().GetLastCommittedEntry();
- if (!navigation_entry)
- return false;
-
- ssl_status = navigation_entry->GetSSL();
- // Note: If changing the implementation below, also change
- // AwAutofillClient::IsContextSecure. See crbug.com/505388
- return navigation_entry->GetURL().SchemeIsCryptographic() &&
- ssl_status.certificate &&
- (!net::IsCertStatusError(ssl_status.cert_status) ||
- net::IsCertStatusMinorError(ssl_status.cert_status)) &&
- !(ssl_status.content_status &
- content::SSLStatus::RAN_INSECURE_CONTENT);
+ return web_contents()->IsContextSecure();
}
bool ChromeAutofillClient::ShouldShowSigninPromo() {

Powered by Google App Engine
This is Rietveld 408576698