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

Unified Diff: content/renderer/bluetooth/web_bluetooth_impl.cc

Issue 1527853002: bluetooth: Add disconnect function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-device-identifier
Patch Set: Fix test that fails after upstream change. Created 4 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: content/renderer/bluetooth/web_bluetooth_impl.cc
diff --git a/content/renderer/bluetooth/web_bluetooth_impl.cc b/content/renderer/bluetooth/web_bluetooth_impl.cc
index 8e3039d66cd23fee9194bf635efdf443b5fe521b..3443d2d608012d274dd13f01d4d86aeba5903d54 100644
--- a/content/renderer/bluetooth/web_bluetooth_impl.cc
+++ b/content/renderer/bluetooth/web_bluetooth_impl.cc
@@ -33,6 +33,10 @@ void WebBluetoothImpl::connectGATT(
GetDispatcher()->connectGATT(frame_routing_id_, device_id, callbacks);
}
+void WebBluetoothImpl::disconnect(const blink::WebString& device_id) {
+ GetDispatcher()->disconnect(frame_routing_id_, device_id);
+}
+
void WebBluetoothImpl::getPrimaryService(
const blink::WebString& device_id,
const blink::WebString& service_uuid,
« no previous file with comments | « content/renderer/bluetooth/web_bluetooth_impl.h ('k') | third_party/WebKit/LayoutTests/bluetooth/connectGATT.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698