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_) { |