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

Unified Diff: chrome/browser/ui/webui/print_preview_handler.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/ui/webui/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview_handler.cc
index d86892692cb729d89c8e2799d1f0ec8dc3328fe3..03233b5fb7f6af507df9e2a30c513ab04f956cab 100644
--- a/chrome/browser/ui/webui/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview_handler.cc
@@ -308,7 +308,8 @@ void PrintPreviewHandler::HandleGetPreview(const ListValue* args) {
settings->SetString(printing::kSettingHeaderFooterTitle,
initiator_tab->tab_contents()->GetTitle());
std::string url;
- NavigationEntry* entry = initiator_tab->controller().GetActiveEntry();
+ NavigationEntry* entry =
+ initiator_tab->tab_contents()->controller().GetActiveEntry();
if (entry)
url = entry->virtual_url().spec();
settings->SetString(printing::kSettingHeaderFooterURL, url);
@@ -336,7 +337,7 @@ void PrintPreviewHandler::HandleGetPreview(const ListValue* args) {
}
VLOG(1) << "Print preview request start";
- RenderViewHost* rvh = initiator_tab->render_view_host();
+ RenderViewHost* rvh = initiator_tab->tab_contents()->render_view_host();
rvh->Send(new PrintMsg_PrintPreview(rvh->routing_id(), *settings));
}
@@ -351,7 +352,7 @@ void PrintPreviewHandler::HandlePrint(const ListValue* args) {
TabContentsWrapper* initiator_tab = GetInitiatorTab();
CHECK(initiator_tab);
- RenderViewHost* init_rvh = initiator_tab->render_view_host();
+ RenderViewHost* init_rvh = initiator_tab->tab_contents()->render_view_host();
init_rvh->Send(new PrintMsg_ResetScriptedPrintCount(init_rvh->routing_id()));
scoped_ptr<DictionaryValue> settings(GetSettingsDictionary(args));
« no previous file with comments | « chrome/browser/ui/webui/media/media_internals_ui.cc ('k') | chrome/browser/ui/webui/print_preview_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698