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

Unified Diff: content/browser/bluetooth/bluetooth_device_chooser_controller.cc

Issue 2244693002: bluetooth: Refactor how we update based on Advertising Data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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: content/browser/bluetooth/bluetooth_device_chooser_controller.cc
diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
index dc4842b2dad2da78247315e3658014f4e3e3da7f..69d348bfef217b09571786d2afdc3c2ed2a86861 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
@@ -106,9 +106,7 @@ bool MatchesFilter(const device::BluetoothDevice& device,
}
if (!filter->services.is_null()) {
- const auto& device_uuid_list = device.GetUUIDs();
- const std::unordered_set<BluetoothUUID, device::BluetoothUUIDHash>
- device_uuids(device_uuid_list.begin(), device_uuid_list.end());
+ const device::BluetoothDevice::UUIDSet& device_uuids = device.GetUUIDs();
for (const base::Optional<BluetoothUUID>& service : filter->services) {
if (!base::ContainsKey(device_uuids, service.value())) {
return false;

Powered by Google App Engine
This is Rietveld 408576698