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

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

Issue 7670045: Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for Skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/webui/print_preview_data_source.cc ('k') | chrome/common/print_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview_handler.cc
===================================================================
--- chrome/browser/ui/webui/print_preview_handler.cc (revision 97225)
+++ chrome/browser/ui/webui/print_preview_handler.cc (working copy)
@@ -493,24 +493,6 @@
print_preview_ui->OnPrintPreviewFailed();
return;
}
-
- // Retrieve the page title and url and send it to the renderer process if
- // headers and footers are to be displayed.
- bool display_header_footer = false;
- if (!settings->GetBoolean(printing::kSettingHeaderFooterEnabled,
- &display_header_footer)) {
- NOTREACHED();
- }
- if (display_header_footer) {
- 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));
@@ -540,8 +522,6 @@
bool print_to_pdf = false;
settings->GetBoolean(printing::kSettingPrintToPDF, &print_to_pdf);
- settings->SetBoolean(printing::kSettingHeaderFooterEnabled, false);
-
TabContentsWrapper* preview_tab_wrapper =
TabContentsWrapper::GetCurrentWrapperForContents(preview_tab());
« no previous file with comments | « chrome/browser/ui/webui/print_preview_data_source.cc ('k') | chrome/common/print_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698