| 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 bcf62af2991c18f62f8c6f532678dbde58913735..35c4e92a0b9ab4b9855d0659acab74c7f657b2e1 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
|
| @@ -153,7 +153,7 @@ class RequestDeviceCallback : public WebBluetoothRequestDeviceCallbacks {
|
|
|
| void onSuccess(std::unique_ptr<WebBluetoothDeviceInit> deviceInit) override {
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
|
|
| BluetoothDevice* device = m_bluetooth->getBluetoothDeviceRepresentingDevice(
|
| @@ -167,7 +167,7 @@ class RequestDeviceCallback : public WebBluetoothRequestDeviceCallbacks {
|
| error /* Corresponds to WebBluetoothResult in web_bluetooth.mojom */)
|
| override {
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_resolver->reject(BluetoothError::take(m_resolver, error));
|
| }
|
|
|