Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 10946011: Switch CaptivePortalTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing, rebase Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698