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 d0f3f3dc29d2d5f464cfe057d9d28d44204f4e79..3e29b43d261dc931a8e5a3f26bba0896abe30d8b 100644 |
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm |
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm |
@@ -269,10 +269,12 @@ 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); |
} |
} |