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

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: owners 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/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 53b7cde628ab772fd0e7ff864c526f21a3cb7cfe..3cb8176179c6d28df7cdf83d87878acd915c0845 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())));
}
}
}
« no previous file with comments | « device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc ('k') | device/bluetooth/test/bluetooth_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698