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()))); |
} |
} |
} |