| 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 fd96bc06686d1ceabb1d26be5929212baa48e1ef..5faf4ad7bac345b60f27f58a4a61acb2fdfb1703 100644
|
| --- a/chrome/browser/ui/tab_contents/tab_contents.cc
|
| +++ b/chrome/browser/ui/tab_contents/tab_contents.cc
|
| @@ -156,8 +156,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)
|
|
|