summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 08:46:49 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 08:46:49 +0000
commit299e3d00feb290b960889c0ae43f97dcaa066a91 (patch)
tree959c4c85794374f981de7b29d335957f8f4670f5 /printing
parent4b0cc73193fb82c7c1eca748da7964ec9c8f7aa8 (diff)
downloadchromium_src-299e3d00feb290b960889c0ae43f97dcaa066a91.zip
chromium_src-299e3d00feb290b960889c0ae43f97dcaa066a91.tar.gz
chromium_src-299e3d00feb290b960889c0ae43f97dcaa066a91.tar.bz2
Cleanup: Get rid of unneeded base::UTF16ToWide() conversions.
It's a no-op in Windows-only code. Review URL: https://codereview.chromium.org/299363002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/printing_context_win.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index 7983d26..f68482d 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -322,7 +322,7 @@ PrintingContext::Result PrintingContextWin::UpdatePrinterSettings(
{
DEVMODE* dev_mode = scoped_dev_mode.get();
dev_mode->dmCopies = std::max(settings_.copies(), 1);
- if (dev_mode->dmCopies > 1) { // do not change unless multiple copies
+ if (dev_mode->dmCopies > 1) { // do not change unless multiple copies
dev_mode->dmFields |= DM_COPIES;
dev_mode->dmCollate = settings_.collate() ? DMCOLLATE_TRUE :
DMCOLLATE_FALSE;
@@ -405,8 +405,7 @@ PrintingContext::Result PrintingContextWin::NewDocument(
DCHECK(SimplifyDocumentTitle(document_name) == document_name);
DOCINFO di = { sizeof(DOCINFO) };
- const std::wstring& document_name_wide = base::UTF16ToWide(document_name);
- di.lpszDocName = document_name_wide.c_str();
+ di.lpszDocName = document_name.c_str();
// Is there a debug dump directory specified? If so, force to print to a file.
base::FilePath debug_dump_path = PrintedDocument::debug_dump_path();
@@ -418,7 +417,7 @@ PrintingContext::Result PrintingContextWin::NewDocument(
filename += L"_";
filename += base::TimeFormatTimeOfDay(now);
filename += L"_";
- filename += base::UTF16ToWide(document_name);
+ filename += document_name;
filename += L"_";
filename += L"buffer.prn";
file_util::ReplaceIllegalCharactersInPath(&filename, '_');