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

Unified Diff: printing/printing_context_win.cc

Issue 3475021: Printing: Push checking of |context| one level lower, as the different (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
« printing/printed_document_cairo.cc ('K') | « printing/printed_document_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win.cc
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index a94c71fffac7568cdf355f24562b9bd275ee5df3..83ddfd4d44d94ee7fc02b9e5c08e8b4fe57614e7 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -301,6 +301,8 @@ PrintingContext::Result PrintingContext::NewDocument(
PrintingContext::Result PrintingContext::NewPage() {
if (abort_printing_)
return CANCEL;
+
+ DCHECK(context_);
DCHECK(in_print_job_);
// Inform the driver that the application is about to begin sending data.
« printing/printed_document_cairo.cc ('K') | « printing/printed_document_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698