| 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 5e1c0aad2d9a924b6f9ba82ae42e17929bcdca20..2b9fa13b817eaef983e67f93faba530ccbe04b50 100644
|
| --- a/chrome/browser/ui/webui/print_preview_handler.cc
|
| +++ b/chrome/browser/ui/webui/print_preview_handler.cc
|
| @@ -483,6 +483,16 @@ void PrintPreviewHandler::HandleGetPreview(const ListValue* args) {
|
| print_preview_ui->OnPrintPreviewFailed();
|
| return;
|
| }
|
| +
|
| + // Retrieve the page title and url and send it to the renderer process.
|
| + settings->SetString(printing::kSettingHeaderFooterTitle,
|
| + initiator_tab->GetTitle());
|
| + std::string url;
|
| + NavigationEntry* entry = initiator_tab->controller().GetActiveEntry();
|
| + if (entry)
|
| + url = entry->virtual_url().spec();
|
| + settings->SetString(printing::kSettingHeaderFooterURL, url);
|
| +
|
| VLOG(1) << "Print preview request start";
|
| RenderViewHost* rvh = initiator_tab->render_view_host();
|
| rvh->Send(new PrintMsg_PrintPreview(rvh->routing_id(), *settings));
|
|
|