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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/Bluetooth.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/Bluetooth.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
index 81b5ceffa4f5e877a6088340952e82a1fe195b6c..5174625e83020f66eeb6ae1d540ecec81c0c59ce 100644
--- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
@@ -240,11 +240,12 @@ ScriptPromise Bluetooth::requestDevice(ScriptState* scriptState,
return promise;
}
-void Bluetooth::addDevice(const String& deviceId, BluetoothDevice* device) {
+void Bluetooth::addToConnectedDevicesMap(const String& deviceId,
+ BluetoothDevice* device) {
m_connectedDevices.add(deviceId, device);
}
-void Bluetooth::removeDevice(const String& deviceId) {
+void Bluetooth::removeFromConnectedDevicesMap(const String& deviceId) {
m_connectedDevices.remove(deviceId);
}

Powered by Google App Engine
This is Rietveld 408576698