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

Unified Diff: device/serial/serial_device_enumerator_win.cc

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « content/test/image_decoder_test.cc ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_device_enumerator_win.cc
diff --git a/device/serial/serial_device_enumerator_win.cc b/device/serial/serial_device_enumerator_win.cc
index e3bde29028202602c7e25aff23275318ddac4d95..a45a609e7c6e02362c7eef8a3244cb7119408839 100644
--- a/device/serial/serial_device_enumerator_win.cc
+++ b/device/serial/serial_device_enumerator_win.cc
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
+#include "base/strings/utf_string_conversions.h"
#include "base/win/registry.h"
namespace device {
@@ -34,7 +35,7 @@ void SerialDeviceEnumeratorWin::GetDevices(SerialDeviceInfoList* devices) {
for (; iter_key.Valid(); ++iter_key) {
base::string16 value(iter_key.Value());
linked_ptr<SerialDeviceInfo> info(new SerialDeviceInfo);
- info->path = WideToASCII(value);
+ info->path = base::UTF16ToASCII(value);
devices->push_back(info);
}
}
« no previous file with comments | « content/test/image_decoder_test.cc ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698