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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.cc

Issue 1991063002: Implement the gattserverdisconnected event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-web-bluetooth-device
Patch Set: Skip the new tests on Mac, where getCharacteristic isn't implemented yet. Created 4 years, 7 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
« no previous file with comments | « no previous file | content/renderer/bluetooth/web_bluetooth_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/web_bluetooth_service_impl.cc
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.cc b/content/browser/bluetooth/web_bluetooth_service_impl.cc
index f4ab0195f291d1ce6d3eaa9fcd1d93c8e04bd9ea..05f1ebad273044b90192b6a67022ee333025ba56 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.cc
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.cc
@@ -209,8 +209,9 @@ void WebBluetoothServiceImpl::DeviceChanged(device::BluetoothAdapter* adapter,
connected_devices_->CloseConnectionToDeviceWithAddress(
device->GetAddress());
if (!device_id.empty()) {
- // TODO(ortuno): Send event to client.
- // http://crbug.com/581855
+ if (client_) {
+ client_->GattServerDisconnected(device_id);
+ }
}
}
}
« no previous file with comments | « no previous file | content/renderer/bluetooth/web_bluetooth_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698