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

Unified Diff: printing/backend/printing_info_win.cc

Issue 168003002: Use DocumentProperties to get default DEVMODE instead of PRINTER_INFO_*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « printing/backend/printing_info_win.h ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/printing_info_win.cc
diff --git a/printing/backend/printing_info_win.cc b/printing/backend/printing_info_win.cc
index 0e4509430d2397803efbb44ce77779a4235b1372..e759639857fa1a2def920607fb6bffa69eaf8490 100644
--- a/printing/backend/printing_info_win.cc
+++ b/printing/backend/printing_info_win.cc
@@ -44,23 +44,4 @@ uint8* GetPrinterInfo(HANDLE printer, int level) {
} // namespace internal
-UserDefaultDevMode::UserDefaultDevMode() : dev_mode_(NULL) {
-}
-
-bool UserDefaultDevMode::Init(HANDLE printer) {
- if (info_9_.Init(printer))
- dev_mode_ = info_9_.get()->pDevMode;
-
- if (!dev_mode_ && info_8_.Init(printer))
- dev_mode_ = info_8_.get()->pDevMode;
-
- if (!dev_mode_ && info_2_.Init(printer))
- dev_mode_ = info_2_.get()->pDevMode;
-
- return dev_mode_ != NULL;
-}
-
-UserDefaultDevMode::~UserDefaultDevMode() {
-}
-
} // namespace printing
« no previous file with comments | « printing/backend/printing_info_win.h ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698