| Index: chrome/browser/ui/tab_contents/tab_contents.cc
|
| diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
|
| index a3cfa028d83eb70c351fd1c07e5c1f93e3f110c5..64a1b10e9d27dfb76cf89f09c7b96c1db9f7e6d2 100644
|
| --- a/chrome/browser/ui/tab_contents/tab_contents.cc
|
| +++ b/chrome/browser/ui/tab_contents/tab_contents.cc
|
| @@ -160,8 +160,7 @@ TabContents::TabContents(WebContents* contents)
|
| #endif
|
|
|
| #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
|
| - captive_portal_tab_helper_.reset(
|
| - new captive_portal::CaptivePortalTabHelper(profile(), web_contents()));
|
| + captive_portal::CaptivePortalTabHelper::CreateForWebContents(contents);
|
| #endif
|
|
|
| #if !defined(OS_ANDROID)
|
|
|