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

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

Issue 6759044: Prepopulating "Print To PDF" select file dialog with a suggested filename and path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments. Created 9 years, 8 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
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc
index 042cb25e5df0f91d3f15f63f7da7cf7597889d19..4c592749b00993f292b125743060da9215142eec 100644
--- a/chrome/browser/printing/print_preview_message_handler.cc
+++ b/chrome/browser/printing/print_preview_message_handler.cc
@@ -80,8 +80,9 @@ void PrintPreviewMessageHandler::OnPagesReadyForPreview(
PrintPreviewUIHTMLSource* html_source = print_preview_ui->html_source();
html_source->SetPrintPreviewData(
std::make_pair(shared_buf, params.data_size));
- print_preview_ui->PreviewDataIsAvailable(params.expected_pages_count,
- tab_contents()->GetTitle());
+ print_preview_ui->PreviewDataIsAvailable(
+ params.expected_pages_count,
+ wrapper->print_view_manager()->RenderSourceName());
}
void PrintPreviewMessageHandler::OnPrintPreviewNodeUnderContextMenu() {
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_handler.h » ('j') | chrome/browser/ui/webui/print_preview_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698