| 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 613753281d8638884e2b1fc25b14c55d6e0b3f02..b87210521706928926c01a879f3df538d8ced589 100644
|
| --- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
|
| +++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
|
| @@ -343,6 +343,10 @@ void ChromeAutofillClient::OnFirstUserGestureObserved() {
|
| }
|
|
|
| bool ChromeAutofillClient::IsContextSecure(const GURL& form_origin) {
|
| + return IsMainUrlSecure();
|
| +}
|
| +
|
| +bool ChromeAutofillClient::IsMainUrlSecure() {
|
| content::SSLStatus ssl_status;
|
| content::NavigationEntry* navigation_entry =
|
| web_contents()->GetController().GetLastCommittedEntry();
|
| @@ -351,7 +355,7 @@ bool ChromeAutofillClient::IsContextSecure(const GURL& form_origin) {
|
|
|
| ssl_status = navigation_entry->GetSSL();
|
| // Note: If changing the implementation below, also change
|
| - // AwAutofillClient::IsContextSecure. See crbug.com/505388
|
| + // AwAutofillClient::IsMainUrlSecure. See crbug.com/505388
|
| return navigation_entry->GetURL().SchemeIsCryptographic() &&
|
| ssl_status.certificate &&
|
| (!net::IsCertStatusError(ssl_status.cert_status) ||
|
|
|