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

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: Created 4 years, 8 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/dbus/bluetooth_gatt_application_service_provider.cc
diff --git a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc
index 30d7dcdd48ae38fe926b117bb98a63c248d718b2..54d83d521bbc993fd48a8c0acd885a99a74ce14a 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc
+++ b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc
@@ -47,19 +47,20 @@ void BluetoothGattApplicationServiceProvider::CreateAttributeServiceProviders(
for (const auto& characteristic : service.second->GetCharacteristics()) {
characteristic_providers->push_back(
base::WrapUnique(BluetoothGattCharacteristicServiceProvider::Create(
- bus, characteristic->object_path(),
+ bus, characteristic.second->object_path(),
base::WrapUnique(new BluetoothGattCharacteristicDelegateWrapper(
- service.second, characteristic.get())),
- characteristic->GetUUID().value(), std::vector<std::string>(),
- std::vector<std::string>(), service.second->object_path())));
- for (const auto& descriptor : characteristic->GetDescriptors()) {
+ service.second, characteristic.second.get())),
+ characteristic.second->GetUUID().value(),
+ std::vector<std::string>(), std::vector<std::string>(),
+ service.second->object_path())));
+ for (const auto& descriptor : characteristic.second->GetDescriptors()) {
descriptor_providers->push_back(
base::WrapUnique(BluetoothGattDescriptorServiceProvider::Create(
bus, descriptor->object_path(),
base::WrapUnique(new BluetoothGattDescriptorDelegateWrapper(
service.second, descriptor.get())),
descriptor->GetUUID().value(), std::vector<std::string>(),
- characteristic->object_path())));
+ characteristic.second->object_path())));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698