summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prerender
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-16 00:45:37 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-16 00:45:37 +0000
commit27e5b39137ab196de4a6a069cec63cc21cf6c5b8 (patch)
treec8d855133f9627f13c901b49dbd4b125068821ed /chrome/browser/prerender
parent948e1047ea0815c506cc17ceb3026b0f9e2599e1 (diff)
downloadchromium_src-27e5b39137ab196de4a6a069cec63cc21cf6c5b8.zip
chromium_src-27e5b39137ab196de4a6a069cec63cc21cf6c5b8.tar.gz
chromium_src-27e5b39137ab196de4a6a069cec63cc21cf6c5b8.tar.bz2
Kill TabContents.
BUG=107201 TEST=no visible change Review URL: https://chromiumcodereview.appspot.com/11578032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prerender')
-rw-r--r--chrome/browser/prerender/prerender_contents.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
index 2737f79..22165b1 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/prerender/prerender_tracker.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/prerender_messages.h"
#include "chrome/common/url_constants.h"
@@ -272,7 +273,7 @@ void PrerenderContents::StartPrerendering(
prerendering_has_started_ = true;
prerender_contents_.reset(CreateWebContents(session_storage_namespace));
- Browser::Adoption::AdoptAsTabContents(prerender_contents_.get());
+ BrowserTabContents::AttachTabHelpers(prerender_contents_.get());
content::WebContentsObserver::Observe(prerender_contents_.get());
web_contents_delegate_.reset(new WebContentsDelegateImpl(this));