| Index: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| diff --git a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| index e8b2f9f600c772055b91f37685229f5df6db05ce..835076252229743590e4ce7aa38d1a428399dcb4 100644
|
| --- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| +++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
|
| @@ -52,6 +52,14 @@ namespace keys = extensions::offscreen_tabs_constants;
|
| namespace tabs_keys = extensions::tabs_constants;
|
| namespace events = extensions::event_names;
|
|
|
| +// TODO(avi): Kill this when TabContents goes away.
|
| +class OffscreenTabContentsCreator {
|
| + public:
|
| + static TabContents* CreateTabContents(content::WebContents* contents) {
|
| + return TabContents::Factory::CreateTabContents(contents);
|
| + }
|
| +};
|
| +
|
| namespace {
|
|
|
| class ParentTab;
|
| @@ -228,7 +236,8 @@ void OffscreenTab::Init(const GURL& url,
|
| // Create the offscreen tab.
|
| WebContents* web_contents = WebContents::Create(
|
| profile, NULL, MSG_ROUTING_NONE, NULL);
|
| - tab_contents_.reset(new TabContents(web_contents));
|
| + tab_contents_.reset(
|
| + OffscreenTabContentsCreator::CreateTabContents(web_contents));
|
|
|
| // Setting the size starts the renderer.
|
| SetSize(width, height);
|
|
|