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

Unified Diff: chrome/browser/printing/print_preview_tab_controller.cc

Issue 4694008: Make pink's TabContentsWrapper change compile on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: chrome/browser/printing/print_preview_tab_controller.cc
===================================================================
--- chrome/browser/printing/print_preview_tab_controller.cc (revision 66453)
+++ chrome/browser/printing/print_preview_tab_controller.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/tab_contents/tab_contents.h"
+#include "chrome/browser/tab_contents_wrapper.h"
#include "chrome/browser/tabs/tab_strip_model.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
@@ -97,19 +98,19 @@
PageTransition::LINK);
params.disposition = NEW_FOREGROUND_TAB;
params.tabstrip_index = current_browser->tabstrip_model()->
- GetIndexOfTabContents(initiator_tab) + 1;
+ GetWrapperIndex(initiator_tab) + 1;
browser::Navigate(&params);
- TabContents* preview_tab = params.target_contents;
- preview_tab->Activate();
+ TabContentsWrapper* preview_tab = params.target_contents;
+ preview_tab->tab_contents()->Activate();
// Add an entry to the map.
- preview_tab_map_[preview_tab] = initiator_tab;
+ preview_tab_map_[preview_tab->tab_contents()] = initiator_tab;
waiting_for_new_preview_page_ = true;
AddObservers(initiator_tab);
- AddObservers(preview_tab);
+ AddObservers(preview_tab->tab_contents());
- return preview_tab;
+ return preview_tab->tab_contents();
}
void PrintPreviewTabController::Observe(NotificationType type,

Powered by Google App Engine
This is Rietveld 408576698