| 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 b57836999a7a56ab5310afa7d5dbc792799ae741..b38bef72b0d923068054b840c9c5ee9dcf6b7cbc 100644
|
| --- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
|
| +++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
|
| @@ -33,6 +33,7 @@
|
| #include "components/autofill/core/common/autofill_pref_names.h"
|
| #include "components/password_manager/content/browser/content_password_manager_driver.h"
|
| #include "components/user_prefs/user_prefs.h"
|
| +#include "content/public/browser/navigation_entry.h"
|
| #include "content/public/browser/render_frame_host.h"
|
| #include "ui/gfx/geometry/rect.h"
|
|
|
| @@ -305,4 +306,18 @@ void ChromeAutofillClient::LinkClicked(const GURL& url,
|
| url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false));
|
| }
|
|
|
| +bool ChromeAutofillClient::xIsContextSecure(const GURL& form_origin) {
|
| + content::SSLStatus ssl_status;
|
| + content::NavigationEntry* navigation_entry =
|
| + web_contents()->GetController().GetVisibleEntry();
|
| + DCHECK(navigation_entry);
|
| + if (!navigation_entry)
|
| + return false;
|
| +
|
| + ssl_status = navigation_entry->GetSSL();
|
| + return ssl_status.security_style ==
|
| + content::SECURITY_STYLE_AUTHENTICATED &&
|
| + ssl_status.content_status == content::SSLStatus::NORMAL_CONTENT;
|
| +}
|
| +
|
| } // namespace autofill
|
|
|