diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 13:37:22 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 13:37:22 +0000 |
commit | d39a81039e80fd6abed400411f4343189d1597e7 (patch) | |
tree | b6063314d54e0b018a2ad6c71684ddb3309025a1 /printing/backend/win_helper.cc | |
parent | 8b8f5868899ec70d2aa47ee92a38c990760e29a1 (diff) | |
download | chromium_src-d39a81039e80fd6abed400411f4343189d1597e7.zip chromium_src-d39a81039e80fd6abed400411f4343189d1597e7.tar.gz chromium_src-d39a81039e80fd6abed400411f4343189d1597e7.tar.bz2 |
Use DocumentProperties to get default DEVMODE instead of PRINTER_INFO_*.
Fixed ScopedPrinterHandle::OpenPrinter interface.
Review URL: https://codereview.chromium.org/168003002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/backend/win_helper.cc')
-rw-r--r-- | printing/backend/win_helper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/printing/backend/win_helper.cc b/printing/backend/win_helper.cc index a16228b..53ccf58 100644 --- a/printing/backend/win_helper.cc +++ b/printing/backend/win_helper.cc @@ -395,7 +395,7 @@ scoped_ptr<DEVMODE[]> XpsTicketToDevMode(const base::string16& printer_name, } printing::ScopedPrinterHandle printer; - if (!printer.OpenPrinter(printer_name.c_str())) + if (!printer.OpenPrinter(printer_name)) return scoped_dev_mode.Pass(); base::win::ScopedComPtr<IStream> pt_stream; |