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

Unified Diff: chrome/service/cloud_print/print_system_win.cc

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Fix Linux compile error Created 3 years, 11 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/service/cloud_print/print_system_win.cc
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 7c16abfe206572f253e136a9bbdd75ee05e2d04a..3b4cd23ca6dd0a1a88f240c825b693cc42dad006 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -444,8 +444,10 @@ class JobSpoolerWin : public PrintSystem::JobSpooler {
// We should enable autorotation once server will be able to generate
// PDF that matches paper size and orientation.
if (utility_host->StartRenderPDFPagesToMetafile(
- pdf_path,
- printing::PdfRenderSettings(render_area, render_dpi, false))) {
+ pdf_path, printing::PdfRenderSettings(
+ render_area, gfx::Point(0, 0), render_dpi,
+ false /* autorotate */,
+ printing::PdfRenderSettings::Mode::NORMAL))) {
// The object will self-destruct when the child process dies.
ignore_result(utility_host.release());
} else {

Powered by Google App Engine
This is Rietveld 408576698