| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |