Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4543)

Unified Diff: chrome/browser/prerender/prerender_manager.cc

Issue 10905301: Switch CoreTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/printing/print_preview_tab_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_manager.cc
diff --git a/chrome/browser/prerender/prerender_manager.cc b/chrome/browser/prerender/prerender_manager.cc
index 82cf8b1fc03b1c7e892c9c4f4f70820cb2a1c6b7..e3fe79637d9454cfef485eb994a16c96a3f97bbd 100644
--- a/chrome/browser/prerender/prerender_manager.cc
+++ b/chrome/browser/prerender/prerender_manager.cc
@@ -402,8 +402,9 @@ bool PrerenderManager::MaybeUsePrerenderedPage(WebContents* web_contents,
// Merge the browsing history.
new_tab_contents->web_contents()->GetController().CopyStateFromAndPrune(
&old_tab_contents->web_contents()->GetController());
- old_tab_contents->core_tab_helper()->delegate()->
- SwapTabContents(old_tab_contents, new_tab_contents);
+ CoreTabHelper::FromWebContents(old_tab_contents->web_contents())->delegate()->
+ SwapTabContents(old_tab_contents->web_contents(),
+ new_tab_contents->web_contents());
prerender_contents->CommitHistory(new_tab_contents);
GURL icon_url = prerender_contents->icon_url();
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/printing/print_preview_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698