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

Unified Diff: printing/printing_context_mac.mm

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_cairo.cc ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_mac.mm
diff --git a/printing/printing_context_mac.mm b/printing/printing_context_mac.mm
index ea6474c7838e4a3220088fa6024eb219dd3a21bb..2c487481c3e016bee72067c677d7b18e541a99ad 100644
--- a/printing/printing_context_mac.mm
+++ b/printing/printing_context_mac.mm
@@ -15,9 +15,6 @@ namespace printing {
PrintingContext::PrintingContext()
: context_(NULL),
print_info_(nil),
-#ifndef NDEBUG
- page_number_(-1),
-#endif
dialog_box_dismissed_(false),
in_print_job_(false),
abort_printing_(false) {
@@ -114,9 +111,6 @@ void PrintingContext::ResetSettings() {
[print_info_ autorelease];
print_info_ = nil;
settings_.Clear();
-#ifndef NDEBUG
- page_number_ = -1;
-#endif
dialog_box_dismissed_ = false;
abort_printing_ = false;
in_print_job_ = false;
@@ -146,10 +140,6 @@ PrintingContext::Result PrintingContext::NewDocument(
if (status != noErr)
return OnError();
-#ifndef NDEBUG
- page_number_ = 0;
-#endif
-
return OK;
}
@@ -171,10 +161,6 @@ PrintingContext::Result PrintingContext::NewPage() {
if (status != noErr)
return OnError();
-#ifndef NDEBUG
- ++page_number_;
-#endif
-
return OK;
}
« no previous file with comments | « printing/printing_context_cairo.cc ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698