| 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() {
|
|
|