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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 2205693003: bluetooth: Replace old advertised uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix mac 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_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index 6995dbedf4fca6c468039040ae2c2d1dba13c996..dacd9df35929a63e0bf8cfd0618d432c4e5bd11b 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -63,6 +63,7 @@ void BluetoothLowEnergyDeviceMac::Update(NSDictionary* advertisement_data,
}
NSArray* service_uuids =
[advertisement_data objectForKey:CBAdvertisementDataServiceUUIDsKey];
+ advertised_uuids_.clear();
for (CBUUID* uuid in service_uuids) {
advertised_uuids_.insert(
BluetoothUUID(std::string([[uuid UUIDString] UTF8String])));
@@ -141,11 +142,6 @@ bool BluetoothLowEnergyDeviceMac::IsConnecting() const {
return ([peripheral_ state] == CBPeripheralStateConnecting);
}
-BluetoothDevice::UUIDList BluetoothLowEnergyDeviceMac::GetUUIDs() const {
- return BluetoothDevice::UUIDList(advertised_uuids_.begin(),
- advertised_uuids_.end());
-}
-
int16_t BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const {
return kUnknownPower;
}

Powered by Google App Engine
This is Rietveld 408576698