summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_job_worker.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 20:40:36 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 20:40:36 +0000
commit3b52c980420f07c2a18c7589873227d5c5ebf49f (patch)
treea428ad9004706fbb2e47a70876fa388c1910c710 /chrome/browser/printing/print_job_worker.cc
parent2073bd0b00962a89513618d3b7034c28f346ba3f (diff)
downloadchromium_src-3b52c980420f07c2a18c7589873227d5c5ebf49f.zip
chromium_src-3b52c980420f07c2a18c7589873227d5c5ebf49f.tar.gz
chromium_src-3b52c980420f07c2a18c7589873227d5c5ebf49f.tar.bz2
Printing: Push checking of |context| one level lower, as the different
platforms have different expectations at this level. BUG=none TEST=none Review URL: http://codereview.chromium.org/3475021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_job_worker.cc')
-rw-r--r--chrome/browser/printing/print_job_worker.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/browser/printing/print_job_worker.cc b/chrome/browser/printing/print_job_worker.cc
index dbc9544..ce1623b 100644
--- a/chrome/browser/printing/print_job_worker.cc
+++ b/chrome/browser/printing/print_job_worker.cc
@@ -263,9 +263,7 @@ void PrintJobWorker::OnDocumentDone() {
void PrintJobWorker::SpoolPage(PrintedPage& page) {
DCHECK_EQ(message_loop(), MessageLoop::current());
DCHECK_NE(page_number_, PageNumber::npos());
-#if !defined(OS_MACOSX)
- DCHECK(printing_context_.context());
-#endif
+
// Signal everyone that the page is about to be printed.
NotificationTask* task = new NotificationTask();
task->Init(owner_,
@@ -280,10 +278,6 @@ void PrintJobWorker::SpoolPage(PrintedPage& page) {
return;
}
-#if defined(OS_MACOSX)
- // Context is only valid between NewPage and PageDone, so we only check here.
- DCHECK(printing_context_.context());
-#endif
// Actual printing.
document_->RenderPrintedPage(page, printing_context_.context());