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

Unified Diff: content/browser/renderer_host/pepper/pepper_print_settings_manager.cc

Issue 11098034: Fix print settings units conversion for PPB_Printing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
« no previous file with comments | « no previous file | ppapi/tests/test_printing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper/pepper_print_settings_manager.cc
diff --git a/content/browser/renderer_host/pepper/pepper_print_settings_manager.cc b/content/browser/renderer_host/pepper/pepper_print_settings_manager.cc
index aa15c08451aa62fea1410293040099ed1aec9551..d2a18b157f92363d1122d6fdcb5f79661e65e4bb 100644
--- a/content/browser/renderer_host/pepper/pepper_print_settings_manager.cc
+++ b/content/browser/renderer_host/pepper/pepper_print_settings_manager.cc
@@ -17,8 +17,8 @@ namespace {
// Print units conversion functions.
int32_t DeviceUnitsInPoints(int32_t device_units,
int32_t device_units_per_inch) {
- return printing::ConvertUnit(device_units, printing::kPointsPerInch,
- device_units_per_inch);
+ return printing::ConvertUnit(device_units, device_units_per_inch,
+ printing::kPointsPerInch);
}
PP_Size PrintSizeToPPPrintSize(const gfx::Size& print_size,
« no previous file with comments | « no previous file | ppapi/tests/test_printing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698