diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-25 19:37:03 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-25 19:37:03 +0000 |
commit | 6c3bf032651d5f912775e0c8cd7e962454145ced (patch) | |
tree | 88cf8b652147b9acf47aa81999f8652609890dde /printing/backend/win_helper.cc | |
parent | ce51317df2e23a717f95e56e1a9db1a7fb330a16 (diff) | |
download | chromium_src-6c3bf032651d5f912775e0c8cd7e962454145ced.zip chromium_src-6c3bf032651d5f912775e0c8cd7e962454145ced.tar.gz chromium_src-6c3bf032651d5f912775e0c8cd7e962454145ced.tar.bz2 |
Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, sandbox/, skia/, sql/, sync/, tools/, webkit/, win8/ to use the base:: namespace.
BUG=330556
TEST=no change
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/121123002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/backend/win_helper.cc')
-rw-r--r-- | printing/backend/win_helper.cc | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/printing/backend/win_helper.cc b/printing/backend/win_helper.cc index 3d114d9..f7b3310 100644 --- a/printing/backend/win_helper.cc +++ b/printing/backend/win_helper.cc @@ -289,15 +289,19 @@ bool InitBasicPrinterInfo(HANDLE printer, PrinterBasicInfo* printer_info) { if (!info_2.Init(printer)) return false; - printer_info->printer_name = WideToUTF8(info_2.get()->pPrinterName); - if (info_2.get()->pComment) - printer_info->printer_description = WideToUTF8(info_2.get()->pComment); - if (info_2.get()->pLocation) + printer_info->printer_name = base::WideToUTF8(info_2.get()->pPrinterName); + if (info_2.get()->pComment) { + printer_info->printer_description = + base::WideToUTF8(info_2.get()->pComment); + } + if (info_2.get()->pLocation) { printer_info->options[kLocationTagName] = - WideToUTF8(info_2.get()->pLocation); - if (info_2.get()->pDriverName) + base::WideToUTF8(info_2.get()->pLocation); + } + if (info_2.get()->pDriverName) { printer_info->options[kDriverNameTagName] = - WideToUTF8(info_2.get()->pDriverName); + base::WideToUTF8(info_2.get()->pDriverName); + } printer_info->printer_status = info_2.get()->Status; std::string driver_info = GetDriverInfo(printer); @@ -319,16 +323,16 @@ std::string GetDriverInfo(HANDLE printer) { std::string info[4]; if (info_6.get()->pName) - info[0] = WideToUTF8(info_6.get()->pName); + info[0] = base::WideToUTF8(info_6.get()->pName); if (info_6.get()->pDriverPath) { scoped_ptr<FileVersionInfo> version_info( FileVersionInfo::CreateFileVersionInfo( base::FilePath(info_6.get()->pDriverPath))); if (version_info.get()) { - info[1] = WideToUTF8(version_info->file_version()); - info[2] = WideToUTF8(version_info->product_name()); - info[3] = WideToUTF8(version_info->product_version()); + info[1] = base::WideToUTF8(version_info->file_version()); + info[2] = base::WideToUTF8(version_info->product_name()); + info[3] = base::WideToUTF8(version_info->product_version()); } } |