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

Unified Diff: device/bluetooth/bluetooth_device_win.cc

Issue 1690133002: Implement BluetoothRemoteGattServiceWin and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments and split out of included GATT services Created 4 years, 10 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_device_win.cc
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc
index d63b9d0434863ac671596c8e8ab87d7dd7694967..514a1000fb4459c248e4c12fd0b658452c569088 100644
--- a/device/bluetooth/bluetooth_device_win.cc
+++ b/device/bluetooth/bluetooth_device_win.cc
@@ -350,7 +350,7 @@ void BluetoothDeviceWin::UpdateGattServices(
}
}
for (const auto& service : to_be_removed_services) {
- gatt_services_.erase(service);
+ gatt_services_.take_and_erase(service);
}
// Update previously discovered services.
for (auto gatt_service : gatt_services_) {

Powered by Google App Engine
This is Rietveld 408576698