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

Unified Diff: rlz/mac/lib/machine_id_mac.cc

Issue 121123002: Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, sandbox/, skia/, sql/, sync/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « rlz/lib/machine_id_unittest.cc ('k') | rlz/win/lib/registry_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/mac/lib/machine_id_mac.cc
diff --git a/rlz/mac/lib/machine_id_mac.cc b/rlz/mac/lib/machine_id_mac.cc
index af39bb815e48a6213fa77ee1e5d4132494de259e..6dbb0d792819af5c1676bf923a6650f7dd450a15 100644
--- a/rlz/mac/lib/machine_id_mac.cc
+++ b/rlz/mac/lib/machine_id_mac.cc
@@ -123,9 +123,10 @@ bool GetRawMachineId(base::string16* data, int* more_data) {
data->clear();
if (GetMacAddress(mac_address, sizeof(mac_address))) {
- *data += ASCIIToUTF16(base::StringPrintf("mac:%02x%02x%02x%02x%02x%02x",
- mac_address[0], mac_address[1], mac_address[2],
- mac_address[3], mac_address[4], mac_address[5]));
+ *data += base::ASCIIToUTF16(
+ base::StringPrintf("mac:%02x%02x%02x%02x%02x%02x",
+ mac_address[0], mac_address[1], mac_address[2],
+ mac_address[3], mac_address[4], mac_address[5]));
}
// A MAC address is enough to uniquely identify a machine, but it's only 6
@@ -134,8 +135,8 @@ bool GetRawMachineId(base::string16* data, int* more_data) {
CFStringRef serial = CopySerialNumber();
if (serial) {
if (!data->empty())
- *data += UTF8ToUTF16(" ");
- *data += UTF8ToUTF16("serial:") + base::SysCFStringRefToUTF16(serial);
+ *data += base::UTF8ToUTF16(" ");
+ *data += base::UTF8ToUTF16("serial:") + base::SysCFStringRefToUTF16(serial);
CFRelease(serial);
}
« no previous file with comments | « rlz/lib/machine_id_unittest.cc ('k') | rlz/win/lib/registry_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698