| Index: content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| index 16a3630a279531bd04e2738d10730221c5675934..ace8433f9069e55717551e98629064712d33249f 100644
|
| --- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| +++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| @@ -218,7 +218,12 @@ BluetoothDeviceChooserController::BluetoothDeviceChooserController(
|
| CHECK(adapter_);
|
| }
|
|
|
| -BluetoothDeviceChooserController::~BluetoothDeviceChooserController() {}
|
| +BluetoothDeviceChooserController::~BluetoothDeviceChooserController() {
|
| + if (chooser_) {
|
| + DCHECK(!error_callback_.is_null());
|
| + error_callback_.Run(blink::mojom::WebBluetoothError::CHOOSER_CANCELLED);
|
| + }
|
| +}
|
|
|
| void BluetoothDeviceChooserController::GetDevice(
|
| blink::mojom::WebBluetoothRequestDeviceOptionsPtr options,
|
|
|