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

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: 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 8ee9c701f71e70034d903ec7223fb64224d8c7fc..cc141fd5be0cc7fffcf43972583a011c60edcfb2 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1186,9 +1186,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.
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698