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

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

Issue 6783005: Print Preview: Set a print job's title and url correctly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
Index: chrome/browser/printing/print_preview_message_handler.cc
===================================================================
--- chrome/browser/printing/print_preview_message_handler.cc (revision 80342)
+++ chrome/browser/printing/print_preview_message_handler.cc (working copy)
@@ -7,7 +7,9 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/printing/print_preview_tab_controller.h"
+#include "chrome/browser/printing/print_view_manager.h"
#include "chrome/browser/printing/printer_query.h"
+#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/webui/print_preview_handler.h"
#include "chrome/browser/ui/webui/print_preview_ui.h"
#include "chrome/browser/ui/webui/print_preview_ui_html_source.h"
@@ -69,6 +71,10 @@
return;
}
+ TabContentsWrapper* wrapper =
+ TabContentsWrapper::GetCurrentWrapperForContents(print_preview_tab);
Avi (use Gerrit) 2011/04/06 11:21:32 Are we in a callback from content/? If not, please
Lei Zhang 2011/04/07 00:53:20 For PrintPreview, we have a lot of classes in chro
+ wrapper->print_view_manager()->OverrideTitle(tab_contents());
+
PrintPreviewUI* print_preview_ui =
static_cast<PrintPreviewUI*>(print_preview_tab->web_ui());
PrintPreviewUIHTMLSource* html_source = print_preview_ui->html_source();
« no previous file with comments | « no previous file | chrome/browser/printing/print_view_manager.h » ('j') | chrome/browser/ui/tab_contents/tab_contents_wrapper.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698