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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp

Issue 2650003005: Mark Bluetooth devices connected after they are actually connected (Closed)
Patch Set: mark Bluetooth devices connected after they are actually connected Created 3 years, 11 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: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
index dde3df2afd038565362397085a5b25020b1684b3..e4e2d87fa0ce25992884e39459cd5193849e30e0 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
@@ -83,7 +83,7 @@ void BluetoothDevice::disconnectGATTIfConnected() {
if (m_gatt->connected()) {
m_gatt->setConnected(false);
m_gatt->ClearActiveAlgorithms();
- m_bluetooth->removeDevice(id());
+ m_bluetooth->removeFromConnectedDevicesMap(id());
mojom::blink::WebBluetoothService* service = m_bluetooth->service();
service->RemoteServerDisconnect(id());
}

Powered by Google App Engine
This is Rietveld 408576698