Index: device/bluetooth/bluetooth_device_mac.mm |
diff --git a/device/bluetooth/bluetooth_device_mac.mm b/device/bluetooth/bluetooth_device_mac.mm |
index 5d37a548c6c3fb9f0c67b6a3a69947f434156e4d..6fbad23ee33270130c8612f77bb83b301939ba53 100644 |
--- a/device/bluetooth/bluetooth_device_mac.mm |
+++ b/device/bluetooth/bluetooth_device_mac.mm |
@@ -179,10 +179,11 @@ void BluetoothDeviceMac::Forget(const ErrorCallback& error_callback) { |
} |
void BluetoothDeviceMac::ConnectToService( |
- const std::string& service_uuid, |
+ const device::BluetoothUUID& service_uuid, |
const SocketCallback& callback) { |
IOBluetoothSDPServiceRecord* record = |
- [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID(service_uuid)]; |
+ [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID( |
+ service_uuid.canonical_value())]; |
if (record != nil) { |
BluetoothServiceRecordMac service_record(record); |
scoped_refptr<BluetoothSocket> socket( |