summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/printing/printed_document.cc2
-rw-r--r--chrome/browser/printing/win_printing_context.cc8
-rw-r--r--chrome/browser/printing/win_printing_context.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/printing/printed_document.cc b/chrome/browser/printing/printed_document.cc
index 1b61971..b6a5d8a 100644
--- a/chrome/browser/printing/printed_document.cc
+++ b/chrome/browser/printing/printed_document.cc
@@ -89,7 +89,7 @@ bool PrintedDocument::GetPage(int page_number,
void PrintedDocument::RenderPrintedPage(const PrintedPage& page,
HDC context) const {
-#ifdef _DEBUG
+#ifndef NDEBUG
{
// Make sure the page is from our list.
AutoLock lock(lock_);
diff --git a/chrome/browser/printing/win_printing_context.cc b/chrome/browser/printing/win_printing_context.cc
index dc1723a..badbaf2 100644
--- a/chrome/browser/printing/win_printing_context.cc
+++ b/chrome/browser/printing/win_printing_context.cc
@@ -135,7 +135,7 @@ class PrintingContext::CallbackHandler
PrintingContext::PrintingContext()
: hdc_(NULL),
-#ifdef _DEBUG
+#ifndef NDEBUG
page_number_(-1),
#endif
dialog_box_(NULL),
@@ -242,7 +242,7 @@ void PrintingContext::ResetSettings() {
settings_.Clear();
in_print_job_ = false;
-#ifdef _DEBUG
+#ifndef NDEBUG
page_number_ = -1;
#endif
}
@@ -297,7 +297,7 @@ PrintingContext::Result PrintingContext::NewDocument(
if (StartDoc(hdc_, &di) <= 0)
return OnErrror();
-#ifdef _DEBUG
+#ifndef NDEBUG
page_number_ = 0;
#endif
return OK;
@@ -312,7 +312,7 @@ PrintingContext::Result PrintingContext::NewPage() {
if (StartPage(hdc_) <= 0)
return OnErrror();
-#ifdef _DEBUG
+#ifndef NDEBUG
++page_number_;
#endif
diff --git a/chrome/browser/printing/win_printing_context.h b/chrome/browser/printing/win_printing_context.h
index 227c301..eaacc02 100644
--- a/chrome/browser/printing/win_printing_context.h
+++ b/chrome/browser/printing/win_printing_context.h
@@ -113,7 +113,7 @@ class PrintingContext {
// Complete print context settings.
PrintSettings settings_;
-#ifdef _DEBUG
+#ifndef NDEBUG
// Current page number in the print job.
int page_number_;
#endif