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

Unified Diff: components/printing/test/mock_printer.cc

Issue 2788343003: Remove desired DPI (Closed)
Patch Set: Created 3 years, 9 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 | « components/printing/test/mock_printer.h ('k') | printing/print_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/test/mock_printer.cc
diff --git a/components/printing/test/mock_printer.cc b/components/printing/test/mock_printer.cc
index 1a38b7a08aa8033e1ae3bd0a71d87c07e8cb3d4e..4d107b329535bb7bc7c6f16d2fd91d04589214af 100644
--- a/components/printing/test/mock_printer.cc
+++ b/components/printing/test/mock_printer.cc
@@ -64,7 +64,6 @@ MockPrinterPage::~MockPrinterPage() {
MockPrinter::MockPrinter()
: dpi_(printing::kPointsPerInch),
- desired_dpi_(printing::kPointsPerInch),
selection_only_(false),
should_print_backgrounds_(false),
document_cookie_(-1),
@@ -111,7 +110,6 @@ void MockPrinter::GetDefaultPrintSettings(PrintMsg_Print_Params* params) {
void MockPrinter::SetDefaultPrintSettings(const PrintMsg_Print_Params& params) {
dpi_ = params.dpi;
- desired_dpi_ = params.desired_dpi;
selection_only_ = params.selection_only;
should_print_backgrounds_ = params.should_print_backgrounds;
page_size_ = params.page_size;
@@ -148,7 +146,6 @@ void MockPrinter::ScriptedPrint(int cookie,
settings->Reset();
settings->params.dpi = dpi_;
- settings->params.desired_dpi = desired_dpi_;
settings->params.selection_only = selection_only_;
settings->params.should_print_backgrounds = should_print_backgrounds_;
settings->params.document_cookie = document_cookie_;
@@ -290,7 +287,6 @@ int MockPrinter::CreateDocumentCookie() {
void MockPrinter::SetPrintParams(PrintMsg_Print_Params* params) {
params->dpi = dpi_;
- params->desired_dpi = desired_dpi_;
params->selection_only = selection_only_;
params->should_print_backgrounds = should_print_backgrounds_;
params->document_cookie = document_cookie_;
« no previous file with comments | « components/printing/test/mock_printer.h ('k') | printing/print_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698