Index: chrome/browser/ssl/ssl_tab_helper.cc |
diff --git a/chrome/browser/ssl/ssl_tab_helper.cc b/chrome/browser/ssl/ssl_tab_helper.cc |
index ca76decb0115cac984aa49fdbcff3ba02b2e1655..86fb7b9dfa9640f3f02fe69393daba6aa06c4575 100644 |
--- a/chrome/browser/ssl/ssl_tab_helper.cc |
+++ b/chrome/browser/ssl/ssl_tab_helper.cc |
@@ -20,6 +20,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ssl/ssl_add_cert_handler.h" |
#include "chrome/browser/ssl/ssl_client_certificate_selector.h" |
+#include "chrome/browser/ui/browser_finder.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/chrome_switches.h" |
#include "content/public/browser/notification_details.h" |
@@ -191,12 +192,21 @@ void SSLTabHelper::SSLAddCertData::Observe( |
DEFINE_WEB_CONTENTS_USER_DATA_KEY(SSLTabHelper); |
SSLTabHelper::SSLTabHelper(content::WebContents* contents) |
- : web_contents_(contents) { |
+ : WebContentsObserver(contents), |
+ web_contents_(contents) { |
} |
SSLTabHelper::~SSLTabHelper() { |
} |
+void SSLTabHelper::DidChangeVisibleSSLState() { |
+#if !defined(OS_ANDROID) |
+ Browser* browser = chrome::FindBrowserWithWebContents(web_contents_); |
+ if (browser) |
+ browser->VisibleSSLStateChanged(web_contents_); |
+#endif // !defined(OS_ANDROID) |
+} |
+ |
void SSLTabHelper::ShowClientCertificateRequestDialog( |
const net::HttpNetworkSession* network_session, |
net::SSLCertRequestInfo* cert_request_info, |