| Index: content/browser/bluetooth/bluetooth_allowed_devices_map.cc
|
| diff --git a/content/browser/bluetooth/bluetooth_allowed_devices_map.cc b/content/browser/bluetooth/bluetooth_allowed_devices_map.cc
|
| index a0173a5e3644e0eae7285706f6e1f1af7438d4cf..767ea23886ee8e530b0b47efdd90ced845d11dc3 100644
|
| --- a/content/browser/bluetooth/bluetooth_allowed_devices_map.cc
|
| +++ b/content/browser/bluetooth/bluetooth_allowed_devices_map.cc
|
| @@ -166,15 +166,18 @@ void BluetoothAllowedDevicesMap::AddUnionOfServicesTo(
|
| const blink::mojom::WebBluetoothRequestDeviceOptionsPtr& options,
|
| std::unordered_set<BluetoothUUID, device::BluetoothUUIDHash>*
|
| unionOfServices) {
|
| - for (const auto& filter : options->filters) {
|
| - if (!filter->services) {
|
| - continue;
|
| - }
|
| -
|
| - for (const BluetoothUUID& uuid : filter->services.value()) {
|
| - unionOfServices->insert(uuid);
|
| + if (options->filters) {
|
| + for (const auto& filter : options->filters.value()) {
|
| + if (!filter->services) {
|
| + continue;
|
| + }
|
| +
|
| + for (const BluetoothUUID& uuid : filter->services.value()) {
|
| + unionOfServices->insert(uuid);
|
| + }
|
| }
|
| }
|
| +
|
| for (const BluetoothUUID& uuid : options->optional_services) {
|
| unionOfServices->insert(uuid);
|
| }
|
|
|