summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_content_browser_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chrome_content_browser_client.cc')
-rw-r--r--chrome/browser/chrome_content_browser_client.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index d345d79..0ee484c 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1123,9 +1123,10 @@ void ChromeContentBrowserClient::AllowCertificateError(
}
#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
- TabContents* tab_contents = TabContents::FromWebContents(tab);
- if (tab_contents)
- tab_contents->captive_portal_tab_helper()->OnSSLCertError(ssl_info);
+ captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper =
+ captive_portal::CaptivePortalTabHelper::FromWebContents(tab);
+ if (captive_portal_tab_helper)
+ captive_portal_tab_helper->OnSSLCertError(ssl_info);
#endif
// Otherwise, display an SSL blocking page.