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

Unified Diff: chrome/renderer/print_web_view_helper_linux.cc

Issue 11367033: "Using" cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/renderer/print_web_view_helper.cc ('k') | chrome/renderer/print_web_view_helper_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper_linux.cc
diff --git a/chrome/renderer/print_web_view_helper_linux.cc b/chrome/renderer/print_web_view_helper_linux.cc
index bde6966fb69b1d10c5efea16c17b7acce916ac27..d23bb96f4ccf68c964cc0ed3b70d339114341738 100644
--- a/chrome/renderer/print_web_view_helper_linux.cc
+++ b/chrome/renderer/print_web_view_helper_linux.cc
@@ -26,9 +26,11 @@
using WebKit::WebFrame;
using WebKit::WebNode;
-bool PrintWebViewHelper::RenderPreviewPage(int page_number) {
+bool PrintWebViewHelper::RenderPreviewPage(
+ int page_number,
+ const PrintMsg_Print_Params& print_params) {
PrintMsg_PrintPage_Params page_params;
- page_params.params = print_preview_context_.print_params();
+ page_params.params = print_params;
page_params.page_number = page_number;
scoped_ptr<printing::Metafile> draft_metafile;
printing::Metafile* initial_render_metafile =
@@ -209,7 +211,7 @@ void PrintWebViewHelper::PrintPageInternal(
PrintHeaderAndFooter(canvas.get(), params.page_number + 1,
print_preview_context_.total_page_count(),
scale_factor, page_layout_in_points,
- *header_footer_info_);
+ *header_footer_info_, params.params);
}
// Done printing. Close the device context to retrieve the compiled metafile.
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | chrome/renderer/print_web_view_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698