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 ca10cba403fffd2c3a6bbb5e052661a90d999679..d2fa4608db56cfefc8f6ba5c2a8f1687adc22773 100644 |
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc |
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc |
@@ -609,8 +609,11 @@ void PrintPreviewUI::OnReloadPrintersList() { |
web_ui()->CallJavascriptFunction("reloadPrintersList"); |
} |
-void PrintPreviewUI::OnPrintPreviewScalingDisabled() { |
- web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); |
+void PrintPreviewUI::OnSetOptionsFromDocument( |
+ const PrintHostMsg_SetOptionsFromDocument_Params& params) { |
+ // Notify WebUI that print scaling is disabled |
+ if (params.is_scaling_disabled) |
+ web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); |
} |
// static |