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

Side by Side Diff: device/bluetooth/bluetooth_device_mac.mm

Issue 279503003: [Bluetooth, Mac] Use lowercase for the bluetooth device address for M36. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/bluetooth_device_mac.h" 5 #include "device/bluetooth/bluetooth_device_mac.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/hash.h" 10 #include "base/hash.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // static 238 // static
239 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) { 239 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) {
240 return NormalizeAddress(base::SysNSStringToUTF8([device addressString])); 240 return NormalizeAddress(base::SysNSStringToUTF8([device addressString]));
241 } 241 }
242 242
243 // static 243 // static
244 std::string BluetoothDeviceMac::NormalizeAddress(const std::string& address) { 244 std::string BluetoothDeviceMac::NormalizeAddress(const std::string& address) {
245 std::string normalized; 245 std::string normalized;
246 base::ReplaceChars(address, "-", ":", &normalized); 246 base::ReplaceChars(address, "-", ":", &normalized);
247 StringToUpperASCII(&normalized); 247 // TODO(isherman): Restore StringToUpperASCII(&normalized) call for M37.
248 // http://crbug.com/371014
248 return normalized; 249 return normalized;
249 } 250 }
250 251
251 } // namespace device 252 } // namespace device
OLDNEW
« 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