Index: chrome/browser/ui/webui/print_preview/print_preview_ui.cc |
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc |
index 7d9e944f4f7085e870f77e415761fb18a490753b..e57942941d168f3a65a7f65b19e1cb56f889c383 100644 |
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc |
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc |
@@ -628,9 +628,11 @@ void PrintPreviewUI::OnReloadPrintersList() { |
void PrintPreviewUI::OnSetOptionsFromDocument( |
const PrintHostMsg_SetOptionsFromDocument_Params& params) { |
- // Notify WebUI that print scaling is disabled |
- if (params.is_scaling_disabled) |
- web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); |
+ base::DictionaryValue options; |
+ options.SetBoolean(printing::kSettingDisableScaling, |
+ params.is_scaling_disabled); |
+ options.SetInteger(printing::kSettingCopies, params.copies); |
+ web_ui()->CallJavascriptFunction("printPresetOptionsFromDocument", options); |
} |
// static |