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

Unified Diff: printing/printing_context_win.cc

Issue 3418034: Printing: Push checking of |context| one level lower, as the different (Closed)
Patch Set: One more. 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 | « chrome/browser/printing/print_job_worker.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 83ddfd4d44d94ee7fc02b9e5c08e8b4fe57614e7..94108cd14e5559b8064b5fd2b7ada23afd660b05 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -330,6 +330,7 @@ PrintingContext::Result PrintingContext::DocumentDone() {
if (abort_printing_)
return CANCEL;
DCHECK(in_print_job_);
+ DCHECK(context_);
// Inform the driver that document has ended.
if (EndDoc(context_) <= 0)
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698