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

Unified Diff: printing/printing_context_cairo.cc

Issue 3417025: Printing: Remove the debug-only |page_number_| from PrintingContext, which has (Closed)
Patch Set: Created 10 years, 3 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 | « printing/printing_context.h ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_cairo.cc
diff --git a/printing/printing_context_cairo.cc b/printing/printing_context_cairo.cc
index d82f6260fabf109537d2f5650a7c1cbb546f3d18..86de49caaa0465aed7ac87ac624e77c4017d7cc3 100644
--- a/printing/printing_context_cairo.cc
+++ b/printing/printing_context_cairo.cc
@@ -13,9 +13,6 @@ namespace printing {
PrintingContext::PrintingContext()
:
-#ifndef NDEBUG
- page_number_(-1),
-#endif
dialog_box_dismissed_(false),
in_print_job_(false),
abort_printing_(false) {
@@ -66,9 +63,6 @@ PrintingContext::Result PrintingContext::InitWithSettings(
}
void PrintingContext::ResetSettings() {
-#ifndef NDEBUG
- page_number_ = -1;
-#endif
dialog_box_dismissed_ = false;
abort_printing_ = false;
in_print_job_ = false;
@@ -80,10 +74,6 @@ PrintingContext::Result PrintingContext::NewDocument(
NOTIMPLEMENTED();
-#ifndef NDEBUG
- page_number_ = 0;
-#endif
-
return FAILED;
}
@@ -94,10 +84,6 @@ PrintingContext::Result PrintingContext::NewPage() {
NOTIMPLEMENTED();
-#ifndef NDEBUG
- ++page_number_;
-#endif
-
return FAILED;
}
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698