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

Unified Diff: components/printing/renderer/print_web_view_helper_pdf_win.cc

Issue 2829973002: add customized printing setting for headless (Closed)
Patch Set: add skia as public_deps instead Created 3 years, 7 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: components/printing/renderer/print_web_view_helper_pdf_win.cc
diff --git a/components/printing/renderer/print_web_view_helper_pdf_win.cc b/components/printing/renderer/print_web_view_helper_pdf_win.cc
index 9c61a794a4c47ab3d55e691297aa01a913ffe570..d32141d81f5d21b3468a1f36da1e6b54cd517726 100644
--- a/components/printing/renderer/print_web_view_helper_pdf_win.cc
+++ b/components/printing/renderer/print_web_view_helper_pdf_win.cc
@@ -30,8 +30,8 @@ bool PrintWebViewHelper::PrintPagesNative(blink::WebLocalFrame* frame,
CHECK(metafile.Init());
for (size_t i = 0; i < printed_pages.size(); ++i) {
- PrintPageInternal(params.params, printed_pages[i], frame, &metafile,
- &page_size_in_dpi[i], &content_area_in_dpi[i],
+ PrintPageInternal(params.params, printed_pages[i], page_count, frame,
+ &metafile, &page_size_in_dpi[i], &content_area_in_dpi[i],
&printable_area_in_dpi[i]);
}

Powered by Google App Engine
This is Rietveld 408576698