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

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: Added StartPage/FinishPage (metafile functions) calls in print_web_view_helper_win.cc 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
Index: printing/printing_context_win.cc
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index 467bf3c7ad52b3c00d4349d98839e82cca5ac298..5da429fb19c9dcae7ce52e5888fcae201390658e 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -298,13 +298,10 @@ PrintingContext::Result PrintingContextWin::NewDocument(
PrintingContext::Result PrintingContextWin::NewPage() {
if (abort_printing_)
return CANCEL;
-
DCHECK(context_);
DCHECK(in_print_job_);
- // Inform the driver that the application is about to begin sending data.
- if (StartPage(context_) <= 0)
- return OnError();
+ // Intentional No-op.
vandebo (ex-Chrome) 2011/03/15 20:41:39 Hmm, maybe we should note that NativeMetafile::Saf
dpapad 2011/03/15 20:56:44 Done.
return OK;
}
@@ -314,8 +311,8 @@ PrintingContext::Result PrintingContextWin::PageDone() {
return CANCEL;
DCHECK(in_print_job_);
- if (EndPage(context_) <= 0)
- return OnError();
+ // Intentional No-op.
+
return OK;
}
« chrome/renderer/print_web_view_helper_win.cc ('K') | « chrome/renderer/print_web_view_helper_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698