| Index: device/bluetooth/bluetooth_gatt_characteristic.cc
|
| diff --git a/device/bluetooth/bluetooth_gatt_characteristic.cc b/device/bluetooth/bluetooth_gatt_characteristic.cc
|
| index 66c39f68ebaf1987c54b1b8ba6e7d940db997683..a5f48dea1638081a0ac82d260309cd57866ff626 100644
|
| --- a/device/bluetooth/bluetooth_gatt_characteristic.cc
|
| +++ b/device/bluetooth/bluetooth_gatt_characteristic.cc
|
| @@ -25,14 +25,15 @@ BluetoothGattCharacteristic* BluetoothGattCharacteristic::Create(
|
| return NULL;
|
| }
|
|
|
| -BluetoothGattDescriptor* BluetoothGattCharacteristic::GetDescriptorForUUID(
|
| - const BluetoothUUID& uuid) {
|
| +std::vector<BluetoothGattDescriptor*>
|
| +BluetoothGattCharacteristic::GetDescriptorsForUUID(const BluetoothUUID& uuid) {
|
| + std::vector<BluetoothGattDescriptor*> descriptors;
|
| for (BluetoothGattDescriptor* descriptor : GetDescriptors()) {
|
| if (descriptor->GetUUID() == uuid) {
|
| - return descriptor;
|
| + descriptors.push_back(descriptor);
|
| }
|
| }
|
| - return NULL;
|
| + return descriptors;
|
| }
|
|
|
| } // namespace device
|
|
|