| 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..bd5686ba9c078f7e0229093fee42f6d51814339d 100644
|
| --- a/device/bluetooth/bluetooth_device_mac.mm
|
| +++ b/device/bluetooth/bluetooth_device_mac.mm
|
| @@ -36,6 +36,8 @@
|
|
|
| namespace {
|
|
|
| +const char kFailedToConnect[] = "Connection failed";
|
| +
|
| // Converts |uuid| to a IOBluetoothSDPUUID instance.
|
| //
|
| // |uuid| must be in the format of XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.
|
| @@ -193,13 +195,13 @@ void BluetoothDeviceMac::ConnectToService(
|
| }
|
|
|
| void BluetoothDeviceMac::ConnectToProfile(
|
| - device::BluetoothProfile* profile,
|
| + BluetoothProfile* profile,
|
| const base::Closure& callback,
|
| - const ErrorCallback& error_callback) {
|
| + const ConnectToProfileErrorCallback& error_callback) {
|
| if (static_cast<BluetoothProfileMac*>(profile)->Connect(device_))
|
| callback.Run();
|
| else
|
| - error_callback.Run();
|
| + error_callback.Run(kFailedToConnect);
|
| }
|
|
|
| void BluetoothDeviceMac::SetOutOfBandPairingData(
|
|
|