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

Unified Diff: printing/printed_document.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: printing/printed_document.cc
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 047d2dbcb7915923df112230ff50e1557342f3cd..3743ca85ffe2bd2f55f9dc793da492a5b2bf22f6 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -111,9 +111,7 @@ PrintedDocument::~PrintedDocument() {
void PrintedDocument::SetPage(int page_number,
std::unique_ptr<MetafilePlayer> metafile,
-#if defined(OS_WIN)
float shrink,
-#endif // OS_WIN
const gfx::Size& paper_size,
const gfx::Rect& page_rect) {
// Notice the page_number + 1, the reason is that this is the value that will
@@ -122,7 +120,7 @@ void PrintedDocument::SetPage(int page_number,
page_number + 1, std::move(metafile), paper_size, page_rect));
#if defined(OS_WIN)
page->set_shrink_factor(shrink);
-#endif // OS_WIN
+#endif
{
base::AutoLock lock(lock_);
mutable_.pages_[page_number] = page;

Powered by Google App Engine
This is Rietveld 408576698