Index: device/bluetooth/bluetooth_local_gatt_descriptor.cc |
diff --git a/device/bluetooth/bluetooth_local_gatt_descriptor.cc b/device/bluetooth/bluetooth_local_gatt_descriptor.cc |
index d13ab4321ad50c8313746e7f662caebf66b4639b..29b954e05888a99168492cc5b93d204ecb4f927b 100644 |
--- a/device/bluetooth/bluetooth_local_gatt_descriptor.cc |
+++ b/device/bluetooth/bluetooth_local_gatt_descriptor.cc |
@@ -6,6 +6,10 @@ |
#include "base/logging.h" |
+#if defined(OS_CHROMEOS) || defined(OS_LINUX) |
+#include "device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h" |
+#endif |
+ |
namespace device { |
BluetoothLocalGattDescriptor::BluetoothLocalGattDescriptor() {} |
@@ -13,14 +17,19 @@ BluetoothLocalGattDescriptor::BluetoothLocalGattDescriptor() {} |
BluetoothLocalGattDescriptor::~BluetoothLocalGattDescriptor() {} |
// static |
-BluetoothLocalGattDescriptor* BluetoothLocalGattDescriptor::Create( |
+base::WeakPtr<BluetoothLocalGattDescriptor> |
+BluetoothLocalGattDescriptor::Create( |
const BluetoothUUID& uuid, |
- const std::vector<uint8_t>& value, |
BluetoothGattCharacteristic::Permissions permissions, |
BluetoothLocalGattCharacteristic* characteristic) { |
- LOG(ERROR) << "Creating local GATT characteristic descriptors currently not " |
- << "supported."; |
- return NULL; |
+#if defined(OS_CHROMEOS) || defined(OS_LINUX) |
+ return bluez::BluetoothLocalGattDescriptorBlueZ::Create(uuid, permissions, |
+ characteristic); |
+ return nullptr; |
+#else |
+ NOTIMPLEMENTED(); |
+ return nullptr; |
+#endif |
} |
} // namespace device |