Index: chrome/browser/printing/print_dialog_cloud.cc |
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc |
index f2fccf4a34158c48d772636eb6cda6125ec0fd83..209ad6af0e4b28d0536985d49b593f8012040ec2 100644 |
--- a/chrome/browser/printing/print_dialog_cloud.cc |
+++ b/chrome/browser/printing/print_dialog_cloud.cc |
@@ -106,10 +106,10 @@ |
namespace internal_cloud_print_helpers { |
-bool GetRealOrInt(const DictionaryValue& dictionary, |
- const std::string& path, |
- double* out_value) { |
- if (!dictionary.GetReal(path, out_value)) { |
+bool GetDoubleOrInt(const DictionaryValue& dictionary, |
+ const std::string& path, |
+ double* out_value) { |
+ if (!dictionary.GetDouble(path, out_value)) { |
int int_value = 0; |
if (!dictionary.GetInteger(path, &int_value)) |
return false; |
@@ -131,9 +131,9 @@ bool GetPageSetupParameters(const std::string& json, |
bool result = true; |
DictionaryValue* params = static_cast<DictionaryValue*>(parsed_value.get()); |
- result &= GetRealOrInt(*params, "dpi", ¶meters.dpi); |
- result &= GetRealOrInt(*params, "min_shrink", ¶meters.min_shrink); |
- result &= GetRealOrInt(*params, "max_shrink", ¶meters.max_shrink); |
+ result &= GetDoubleOrInt(*params, "dpi", ¶meters.dpi); |
+ result &= GetDoubleOrInt(*params, "min_shrink", ¶meters.min_shrink); |
+ result &= GetDoubleOrInt(*params, "max_shrink", ¶meters.max_shrink); |
result &= params->GetBoolean("selection_only", ¶meters.selection_only); |
return result; |
} |