| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index e900ebf68e7a882daf8fab5e6bad745e6ac5853d..2f164ca540ae01d1558add8afce7a237fe2bdcbd 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -1122,9 +1122,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.
|
|
|