| Index: chrome/browser/ui/views/external_tab_container_win.cc
|
| diff --git a/chrome/browser/ui/views/external_tab_container_win.cc b/chrome/browser/ui/views/external_tab_container_win.cc
|
| index 841baaafc0b6745e85b676f95c9ae5b648b2d993..32c5d1b5ecf7823047b7425948680a2d09beebfd 100644
|
| --- a/chrome/browser/ui/views/external_tab_container_win.cc
|
| +++ b/chrome/browser/ui/views/external_tab_container_win.cc
|
| @@ -194,7 +194,7 @@ bool ExternalTabContainerWin::Init(Profile* profile,
|
| } else {
|
| WebContents* new_contents = WebContents::Create(
|
| profile, NULL, MSG_ROUTING_NONE, NULL);
|
| - tab_contents_.reset(new TabContents(new_contents));
|
| + tab_contents_.reset(TabContents::Factory::CreateTabContents(new_contents));
|
| }
|
|
|
| if (!infobars_enabled)
|
| @@ -489,7 +489,8 @@ void ExternalTabContainerWin::AddNewContents(WebContents* source,
|
|
|
| // Make sure that ExternalTabContainer instance is initialized with
|
| // an unwrapped Profile.
|
| - scoped_ptr<TabContents> tab_contents(new TabContents(new_contents));
|
| + scoped_ptr<TabContents> tab_contents(
|
| + TabContents::Factory::CreateTabContents(new_contents));
|
| bool result = new_container->Init(
|
| tab_contents->profile()->GetOriginalProfile(),
|
| NULL,
|
|
|