Index: chrome/renderer/mock_printer.cc |
diff --git a/chrome/renderer/mock_printer.cc b/chrome/renderer/mock_printer.cc |
index 5848ce80186e6a7858360ab064bed1b456011642..881e56bfed2cb5f783461999f3fb9ca0e18ccd0a 100644 |
--- a/chrome/renderer/mock_printer.cc |
+++ b/chrome/renderer/mock_printer.cc |
@@ -65,7 +65,7 @@ MockPrinter::MockPrinter() |
is_first_request_(true), |
print_to_pdf_(false), |
preview_request_id_(0), |
- fit_to_paper_size_(true), |
+ print_scaling_option_(WebKit::WebPrintScalingOptionSourceSize), |
display_header_footer_(false), |
date_(ASCIIToUTF16("date")), |
title_(ASCIIToUTF16("title")), |
@@ -151,7 +151,7 @@ void MockPrinter::ScriptedPrint(int cookie, |
settings->params.content_size = content_size_; |
settings->params.printable_area = printable_area_; |
settings->params.is_first_request = is_first_request_; |
- settings->params.fit_to_paper_size = fit_to_paper_size_; |
+ settings->params.print_scaling_option = print_scaling_option_; |
settings->params.print_to_pdf = print_to_pdf_; |
settings->params.preview_request_id = preview_request_id_; |
settings->params.display_header_footer = display_header_footer_; |
@@ -305,7 +305,7 @@ void MockPrinter::SetPrintParams(PrintMsg_Print_Params* params) { |
params->margin_left = margin_left_; |
params->margin_top = margin_top_; |
params->is_first_request = is_first_request_; |
- params->fit_to_paper_size = fit_to_paper_size_; |
+ params->print_scaling_option = print_scaling_option_; |
params->print_to_pdf = print_to_pdf_; |
params->preview_request_id = preview_request_id_; |
params->display_header_footer = display_header_footer_; |