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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 1685963003: Adding the last test related with connect/disconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connectdisconnect
Patch Set: Issue to convert no NSError to ConnectErrorCode Created 4 years, 10 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_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 1ca4a45f34c3049a0d758e421d9c0488738727ea..f52e64c7dad5f11defb2939ecdbcb98883729bfe 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(BluetoothDevice::ERROR_FAILED);
}
}

Powered by Google App Engine
This is Rietveld 408576698