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

Unified Diff: device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc

Issue 1947353002: //device/bluetooth support for attribute properties and permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@properties
Patch Set: Created 4 years, 7 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/bluez/bluetooth_local_gatt_descriptor_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc b/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc
index fd65cc39dde0280db3f8f6ee64d291e84c1f0fb6..f9a8502ed62320dc487520be3fae81b2d1446357 100644
--- a/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc
@@ -24,7 +24,8 @@ BluetoothLocalGattDescriptor::Create(
static_cast<bluez::BluetoothLocalGattCharacteristicBlueZ*>(
characteristic);
bluez::BluetoothLocalGattDescriptorBlueZ* descriptor =
- new bluez::BluetoothLocalGattDescriptorBlueZ(uuid, characteristic_bluez);
+ new bluez::BluetoothLocalGattDescriptorBlueZ(uuid, permissions,
+ characteristic_bluez);
return descriptor->weak_ptr_factory_.GetWeakPtr();
}
@@ -34,11 +35,13 @@ namespace bluez {
BluetoothLocalGattDescriptorBlueZ::BluetoothLocalGattDescriptorBlueZ(
const device::BluetoothUUID& uuid,
+ device::BluetoothGattCharacteristic::Permissions permissions,
BluetoothLocalGattCharacteristicBlueZ* characteristic)
: BluetoothGattDescriptorBlueZ(
BluetoothLocalGattServiceBlueZ::AddGuidToObjectPath(
characteristic->object_path().value() + "/descriptor")),
uuid_(uuid),
+ permissions_(permissions),
characteristic_(characteristic),
weak_ptr_factory_(this) {
DCHECK(characteristic->GetService());
@@ -55,8 +58,7 @@ device::BluetoothUUID BluetoothLocalGattDescriptorBlueZ::GetUUID() const {
device::BluetoothGattCharacteristic::Permissions
BluetoothLocalGattDescriptorBlueZ::GetPermissions() const {
- NOTIMPLEMENTED();
- return device::BluetoothGattCharacteristic::Permissions();
+ return permissions_;
}
BluetoothLocalGattCharacteristicBlueZ*

Powered by Google App Engine
This is Rietveld 408576698