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

Unified Diff: device/bluetooth/bluetooth_device_chromeos.cc

Issue 1292263002: bluetooth: Create base class BluetoothDevice::CreateGattConnection impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-adapter-
Patch Set: addressed jyasskin comments, fixed BluetoothDevice destructor re-entrancy. Created 5 years, 3 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_device_chromeos.cc
diff --git a/device/bluetooth/bluetooth_device_chromeos.cc b/device/bluetooth/bluetooth_device_chromeos.cc
index 2fcb1e6715fffadaa766e9a6bdad23443cfe1130..62be52a245ca09967012be9cc82886ab48260a70 100644
--- a/device/bluetooth/bluetooth_device_chromeos.cc
+++ b/device/bluetooth/bluetooth_device_chromeos.cc
@@ -178,6 +178,18 @@ std::string BluetoothDeviceChromeOS::GetDeviceName() const {
return properties->alias.value();
}
+void BluetoothDeviceChromeOS::CreateGattConnectionImpl() {
+ // ChromeOS implementation does not use the default CreateGattConnection
+ // implementation.
+ NOTIMPLEMENTED();
+}
+
+void BluetoothDeviceChromeOS::DisconnectGatt() {
+ // ChromeOS implementation does not use the default CreateGattConnection
+ // implementation.
+ NOTIMPLEMENTED();
+}
+
std::string BluetoothDeviceChromeOS::GetAddress() const {
BluetoothDeviceClient::Properties* properties =
DBusThreadManager::Get()->GetBluetoothDeviceClient()->
@@ -233,6 +245,11 @@ bool BluetoothDeviceChromeOS::IsConnected() const {
return properties->connected.value();
}
+bool BluetoothDeviceChromeOS::IsGattConnected() const {
+ NOTIMPLEMENTED();
+ return false;
+}
+
bool BluetoothDeviceChromeOS::IsConnectable() const {
BluetoothInputClient::Properties* input_properties =
DBusThreadManager::Get()->GetBluetoothInputClient()->

Powered by Google App Engine
This is Rietveld 408576698