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

Unified Diff: chrome/service/cloud_print/print_system_win.cc

Issue 599733002: StartPage/EndPage from spooling code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tue Sep 23 18:18:33 PDT 2014 Created 6 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 | « no previous file | printing/emf_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/print_system_win.cc
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 3ef1cbf222fa1f5264e58161ba437563d2c06c3a..4408c3cfc324cd0d99b11a848be8295bb9a68d7a 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -335,7 +335,9 @@ class JobSpoolerWin : public PrintSystem::JobSpooler {
double scale_factor,
const printing::MetafilePlayer& emf) OVERRIDE {
PreparePageDCForPrinting(printer_dc_.Get(), scale_factor);
+ ::StartPage(printer_dc_.Get());
emf.SafePlayback(printer_dc_.Get());
+ ::EndPage(printer_dc_.Get());
}
// ServiceUtilityProcessHost::Client implementation.
« no previous file with comments | « no previous file | printing/emf_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698