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

Unified Diff: printing/printing_context_win.cc

Issue 6673035: Move Start/EndPage() from NewPage/PageDone() to inside the metafile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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_win.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 467bf3c7ad52b3c00d4349d98839e82cca5ac298..eb10947a81235d7b65a8785bf8139d55e2f6deb1 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -301,21 +301,14 @@ PrintingContext::Result PrintingContextWin::NewPage() {
DCHECK(context_);
DCHECK(in_print_job_);
-
- // Inform the driver that the application is about to begin sending data.
vandebo (ex-Chrome) 2011/03/15 17:23:06 Add a comment similar to the one in the Linux vers
dpapad 2011/03/15 20:32:32 Done.
- if (StartPage(context_) <= 0)
- return OnError();
-
return OK;
}
PrintingContext::Result PrintingContextWin::PageDone() {
if (abort_printing_)
return CANCEL;
- DCHECK(in_print_job_);
- if (EndPage(context_) <= 0)
- return OnError();
+ DCHECK(in_print_job_);
return OK;
}
« printing/printed_document_win.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