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

Unified Diff: printing/printing_context.cc

Issue 78143002: Use predefined margine for privet printing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index e452fd069bcf26f55e50b735a4b9977cfddd511e..c8e8e8711aa0a49835629ac6a23a8e4a684b3a3e 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -80,7 +80,7 @@ PrintingContext::Result PrintingContext::UpdatePrintSettings(
// server.
gfx::Size paper_size(GetPdfPaperSizeDeviceUnits());
gfx::Rect paper_rect(0, 0, paper_size.width(), paper_size.height());
- if (print_to_cloud) {
+ if (print_to_cloud || print_with_privet) {
paper_rect.Inset(
kCloudPrintMarginInch * settings_.device_units_per_inch(),
kCloudPrintMarginInch * settings_.device_units_per_inch());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698