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

Unified Diff: printing/print_settings.cc

Issue 46623002: Move settings setup for PDF and cloud print into single location in PrintingContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/print_settings.cc
diff --git a/printing/print_settings.cc b/printing/print_settings.cc
index 9e2a2517e16d524cfa4d6d447db89ac54f4f888e..f2dc42585dafc8b0ee7fa1c55d5c7273e97aef1d 100644
--- a/printing/print_settings.cc
+++ b/printing/print_settings.cc
@@ -140,10 +140,10 @@ void PrintSettings::Clear() {
}
void PrintSettings::SetPrinterPrintableArea(
- gfx::Size const& physical_size_device_units,
- gfx::Rect const& printable_area_device_units,
- int units_per_inch,
+ const gfx::Size& physical_size_device_units,
+ const gfx::Rect& printable_area_device_units,
bool landscape_needs_flip) {
+ int units_per_inch = device_units_per_inch();
int header_footer_text_height = 0;
if (display_header_footer_) {
// Hard-code text_height = 0.5cm = ~1/5 of inch.

Powered by Google App Engine
This is Rietveld 408576698