Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp |
index d73dd6b4e3e65b7af6d0d35224b4ad6f204e73ab..940731497b60f6c757c7647fc49af52b9b92d378 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp |
@@ -84,10 +84,11 @@ void BluetoothRemoteGATTService::GetCharacteristicsCallback( |
HeapVector<Member<BluetoothRemoteGATTCharacteristic>> gattCharacteristics; |
gattCharacteristics.reserveInitialCapacity(characteristics->size()); |
for (const auto& characteristic : characteristics.value()) { |
- gattCharacteristics.append(device()->getOrCreateRemoteGATTCharacteristic( |
- resolver->getExecutionContext(), characteristic->instance_id, |
- serviceInstanceId, characteristic->uuid, characteristic->properties, |
- this)); |
+ gattCharacteristics.push_back( |
+ device()->getOrCreateRemoteGATTCharacteristic( |
+ resolver->getExecutionContext(), characteristic->instance_id, |
+ serviceInstanceId, characteristic->uuid, |
+ characteristic->properties, this)); |
} |
resolver->resolve(gattCharacteristics); |
} else { |