| 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 11079829ab95b4ae58ec8bcec4c02098c2e6430d..ec4b59298818a7887c6675d25ca38f80259a70a6 100644
|
| --- a/android_webview/native/aw_autofill_client.cc
|
| +++ b/android_webview/native/aw_autofill_client.cc
|
| @@ -186,15 +186,19 @@ void AwAutofillClient::OnFirstUserGestureObserved() {
|
| }
|
|
|
| bool AwAutofillClient::IsContextSecure(const GURL& form_origin) {
|
| + return IsMainUrlSecure();
|
| +}
|
| +
|
| +bool AwAutofillClient::IsMainUrlSecure() {
|
| content::SSLStatus ssl_status;
|
| content::NavigationEntry* navigation_entry =
|
| web_contents_->GetController().GetLastCommittedEntry();
|
| if (!navigation_entry)
|
| - return false;
|
| + return false;
|
|
|
| ssl_status = navigation_entry->GetSSL();
|
| // Note: The implementation below is a copy of the one in
|
| - // ChromeAutofillClient::IsContextSecure, and should be kept in sync
|
| + // ChromeAutofillClient::IsMainUrlSecure, and should be kept in sync
|
| // until crbug.com/505388 gets implemented.
|
| return navigation_entry->GetURL().SchemeIsCryptographic() &&
|
| ssl_status.certificate &&
|
|
|