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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.mm

Issue 2783283002: bluetooth: macOS: Adding log in BluetoothAdapterMac::DisconnectGatt() (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac.mm
diff --git a/device/bluetooth/bluetooth_adapter_mac.mm b/device/bluetooth/bluetooth_adapter_mac.mm
index 667bbd6e06425cd14a23461624b662165cbff694..d7660f6028f3a1832e6325c12652d022dfbbc6b3 100644
--- a/device/bluetooth/bluetooth_adapter_mac.mm
+++ b/device/bluetooth/bluetooth_adapter_mac.mm
@@ -641,12 +641,16 @@ BluetoothAdapterMac::RetrieveGattConnectedDevicesWithService(
void BluetoothAdapterMac::CreateGattConnection(
BluetoothLowEnergyDeviceMac* device_mac) {
+ DCHECK(device_mac);
scheib 2017/03/30 22:48:41 This DCHECK is redundant with the "*device_mac" is
jlebel 2017/03/30 23:16:08 It will crash, but somewhere in operator<< related
jlebel 2017/03/31 07:39:12 Done.
+ VLOG(1) << *device_mac << ": Create gatt connection.";
[low_energy_central_manager_ connectPeripheral:device_mac->peripheral_
options:nil];
}
void BluetoothAdapterMac::DisconnectGatt(
BluetoothLowEnergyDeviceMac* device_mac) {
+ DCHECK(device_mac);
+ VLOG(1) << *device_mac << ": Disconnect gatt.";
[low_energy_central_manager_
cancelPeripheralConnection:device_mac->peripheral_];
}
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698