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

Unified Diff: content/browser/geolocation/wifi_data_provider_common.cc

Issue 10534002: replace wstring printf in geolocation as wstring is deprecated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/geolocation/wifi_data_provider_common.cc
diff --git a/content/browser/geolocation/wifi_data_provider_common.cc b/content/browser/geolocation/wifi_data_provider_common.cc
index 7156d1256b4ec53f720a2c1b549a3ee5484ce05b..e20b5ee48efe3f4f5b776b7282cb1465a179f9ac 100644
--- a/content/browser/geolocation/wifi_data_provider_common.cc
+++ b/content/browser/geolocation/wifi_data_provider_common.cc
@@ -11,9 +11,9 @@
string16 MacAddressAsString16(const uint8 mac_as_int[6]) {
// mac_as_int is big-endian. Write in byte chunks.
// Format is XX-XX-XX-XX-XX-XX.
- static const wchar_t* const kMacFormatString =
- L"%02x-%02x-%02x-%02x-%02x-%02x";
- return WideToUTF16(base::StringPrintf(kMacFormatString,
+ static const char* const kMacFormatString =
+ "%02x-%02x-%02x-%02x-%02x-%02x";
+ return ASCIIToUTF16(base::StringPrintf(kMacFormatString,
mac_as_int[0],
mac_as_int[1],
mac_as_int[2],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698