| Index: device/bluetooth/bluetooth_gatt_connection_mac.mm
|
| diff --git a/device/bluetooth/bluetooth_gatt_connection_mac.mm b/device/bluetooth/bluetooth_gatt_connection_mac.mm
|
| index 09b93ee9457d1afc21e34fde53b144a522cbb4f4..413c974d74185d8df1045e062ac0e6c3aa415826 100644
|
| --- a/device/bluetooth/bluetooth_gatt_connection_mac.mm
|
| +++ b/device/bluetooth/bluetooth_gatt_connection_mac.mm
|
| @@ -19,9 +19,12 @@ std::string BluetoothGattConnectionMac::GetDeviceAddress() const {
|
| }
|
|
|
| bool BluetoothGattConnectionMac::IsConnected() {
|
| - return false;
|
| + BluetoothDevice* device = adapter_->GetDevice(device_address_);
|
| + return device->IsConnected();
|
| }
|
|
|
| -void BluetoothGattConnectionMac::Disconnect(const base::Closure& callback) {}
|
| +void BluetoothGattConnectionMac::Disconnect(const base::Closure& callback) {
|
| + // TODO: decrement counter on device.
|
| +}
|
|
|
| } // namespace device
|
|
|