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

Unified Diff: device/bluetooth/bluetooth_device_mac.mm

Issue 288903003: [Bluetooth] Standardize Bluetooth device address format to XX:XX:XX:XX:XX:XX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_device_mac.mm
diff --git a/device/bluetooth/bluetooth_device_mac.mm b/device/bluetooth/bluetooth_device_mac.mm
index 60db6f4425ae9e247ae357d09561efee92ac05a0..e8af48a0c9545a4bbc389f98c05d5af7688b9497 100644
--- a/device/bluetooth/bluetooth_device_mac.mm
+++ b/device/bluetooth/bluetooth_device_mac.mm
@@ -252,16 +252,7 @@ int BluetoothDeviceMac::GetHostTransmitPower(
// static
std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) {
- return NormalizeAddress(base::SysNSStringToUTF8([device addressString]));
-}
-
-// static
-std::string BluetoothDeviceMac::NormalizeAddress(const std::string& address) {
- std::string normalized;
- base::ReplaceChars(address, "-", ":", &normalized);
- // TODO(isherman): Restore StringToUpperASCII(&normalized) call for M37.
- // http://crbug.com/371014
- return normalized;
+ return CanonicalizeAddress(base::SysNSStringToUTF8([device addressString]));
}
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698