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

Unified Diff: device/bluetooth/bluetooth_classic_device_mac.mm

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: device/bluetooth/bluetooth_classic_device_mac.mm
diff --git a/device/bluetooth/bluetooth_classic_device_mac.mm b/device/bluetooth/bluetooth_classic_device_mac.mm
index 0e471e6e339761f048614f6db444f91277fdc490..cc2fafb6e2632aa9bb6e1fdce078457a7a287035 100644
--- a/device/bluetooth/bluetooth_classic_device_mac.mm
+++ b/device/bluetooth/bluetooth_classic_device_mac.mm
@@ -132,8 +132,8 @@ bool BluetoothClassicDeviceMac::IsConnecting() const {
return false;
}
-BluetoothDevice::UUIDList BluetoothClassicDeviceMac::GetUUIDs() const {
- UUIDList uuids;
+BluetoothDevice::UUIDSet BluetoothClassicDeviceMac::GetUUIDs() const {
+ UUIDSet uuids;
for (IOBluetoothSDPServiceRecord* service_record in [device_ services]) {
IOBluetoothSDPDataElement* service_class_data =
[service_record getAttributeDataElement:
@@ -142,7 +142,7 @@ BluetoothDevice::UUIDList BluetoothClassicDeviceMac::GetUUIDs() const {
kBluetoothSDPDataElementTypeDataElementSequence) {
BluetoothUUID uuid = ExtractUuid(service_class_data);
if (uuid.IsValid())
- uuids.push_back(uuid);
+ uuids.insert(uuid);
}
}
return uuids;

Powered by Google App Engine
This is Rietveld 408576698