| Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| index 4d6e3025e86e8c6af0e3f2cac30ff95178a75b9f..6658e8d84f83ab490081c54cc2d728f57e6edf1c 100644
|
| --- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| +++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| @@ -262,11 +262,13 @@ CBPeripheral* BluetoothLowEnergyDeviceMac::GetPeripheral() {
|
| return peripheral_;
|
| }
|
|
|
| -void BluetoothLowEnergyDeviceMac::DidDisconnectPeripheral() {
|
| +void BluetoothLowEnergyDeviceMac::DidDisconnectPeripheral(
|
| + BluetoothDevice::ConnectErrorCode error_code) {
|
| if (create_gatt_connection_error_callbacks_.empty()) {
|
| + // TODO(http://crbug.com/585897): Need to pass the error.
|
| DidDisconnectGatt();
|
| } else {
|
| - DidFailToConnectGatt(ERROR_FAILED);
|
| + DidFailToConnectGatt(error_code);
|
| }
|
| }
|
|
|
|
|