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

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

Issue 9212020: Make scoped dc objects smarter. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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: chrome/service/cloud_print/print_system_win.cc
===================================================================
--- chrome/service/cloud_print/print_system_win.cc (revision 120644)
+++ chrome/service/cloud_print/print_system_win.cc (working copy)
@@ -410,6 +410,8 @@
NOTREACHED();
Peter Kasting 2012/02/08 00:38:49 Is it possible for the CreateDC() call to fail leg
cpu_(ooo_6.6-7.5) 2012/02/10 19:41:55 Not an expert on printing but I can imagine that i
return false;
}
+ printer_dc_.Set(dc);
+
hr = E_FAIL;
DOCINFO di = {0};
di.cbSize = sizeof(DOCINFO);
@@ -419,7 +421,6 @@
if (job_id_ <= 0)
return false;
- printer_dc_.Set(dc);
saved_dc_ = SaveDC(printer_dc_.Get());
print_data_file_path_ = print_data_file_path;
delegate_ = delegate;

Powered by Google App Engine
This is Rietveld 408576698