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

Unified Diff: device/bluetooth/bluetooth_gatt_connection_mac.mm

Issue 1276353005: Planned implementation of CreateGattConnection Base URL: https://chromium.googlesource.com/chromium/src.git@adapimpl-simple
Patch Set: Created 5 years, 4 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_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
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac_unittest.mm ('k') | device/bluetooth/bluetooth_low_energy_central_manager_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698