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

Unified Diff: printing/printed_page.cc

Issue 335473002: Guarded shrink setting with ifdefs to make clear where it is used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/12/2014 0:59:45.49 Created 6 years, 6 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 | « printing/printed_page.h ('k') | printing/printed_page_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_page.cc
diff --git a/printing/printed_page.cc b/printing/printed_page.cc
index af7b7388f86a6b233cf3991cc522b550adf4ee72..19b9fd38f3056d992bc1ff7297cf97da18f23995 100644
--- a/printing/printed_page.cc
+++ b/printing/printed_page.cc
@@ -9,13 +9,14 @@ namespace printing {
PrintedPage::PrintedPage(int page_number,
Metafile* metafile,
const gfx::Size& page_size,
- const gfx::Rect& page_content_rect,
- double shrink_factor)
+ const gfx::Rect& page_content_rect)
: page_number_(page_number),
metafile_(metafile),
+#if defined(OS_WIN)
+ shrink_factor_(0.0f),
+#endif // OS_WIN
page_size_(page_size),
- page_content_rect_(page_content_rect),
- shrink_factor_(shrink_factor) {
+ page_content_rect_(page_content_rect) {
}
PrintedPage::~PrintedPage() {
« no previous file with comments | « printing/printed_page.h ('k') | printing/printed_page_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698