Commit 24cec99c authored by Reilly Grant's avatar Reilly Grant Committed by Chromium LUCI CQ

bluetooth: Remove DCHECK in destructor

The DCHECK in ~Bluetooth() is reachable because navigator.bluetooth can
be destroyed before the execution context is destroyed.

Bug: 972058
Change-Id: I5ed4d4c3b874a6bb7b73e91efcf918945dbf4250
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591240
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Auto-Submit: Reilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836885}
parent 9c1e6f39
...@@ -467,9 +467,7 @@ Bluetooth::Bluetooth(Navigator& navigator) ...@@ -467,9 +467,7 @@ Bluetooth::Bluetooth(Navigator& navigator)
client_receivers_(this, navigator.DomWindow()), client_receivers_(this, navigator.DomWindow()),
service_(navigator.DomWindow()) {} service_(navigator.DomWindow()) {}
Bluetooth::~Bluetooth() { Bluetooth::~Bluetooth() = default;
DCHECK(client_receivers_.empty());
}
BluetoothDevice* Bluetooth::GetBluetoothDeviceRepresentingDevice( BluetoothDevice* Bluetooth::GetBluetoothDeviceRepresentingDevice(
mojom::blink::WebBluetoothDevicePtr device_ptr, mojom::blink::WebBluetoothDevicePtr device_ptr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment