| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| index 5b33bf21c4ddfeda8043fbfbb8d12287f59b3b26..9b81bd820e7464f42c40f6c1c087b059b00ac07b 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
|
| @@ -6,7 +6,7 @@
|
| #define BluetoothDevice_h
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| -#include "core/dom/ActiveDOMObject.h"
|
| +#include "core/dom/ContextLifecycleObserver.h"
|
| #include "modules/EventTargetModules.h"
|
| #include "modules/bluetooth/BluetoothRemoteGATTServer.h"
|
| #include "platform/heap/Heap.h"
|
| @@ -29,7 +29,7 @@ class ScriptPromiseResolver;
|
| // CallbackPromiseAdapter class comments.
|
| class BluetoothDevice final
|
| : public EventTargetWithInlineData
|
| - , public ActiveDOMObject
|
| + , public ContextLifecycleObserver
|
| , public WebBluetoothDevice {
|
| USING_PRE_FINALIZER(BluetoothDevice, dispose);
|
| DEFINE_WRAPPERTYPEINFO();
|
| @@ -54,8 +54,8 @@ public:
|
| // Called before the object gets garbage collected.
|
| void dispose();
|
|
|
| - // ActiveDOMObject interface.
|
| - void stop() override;
|
| + // ContextLifecycleObserver interface.
|
| + void contextDestroyed() override;
|
|
|
| // If gatt is connected then disconnects and sets gatt.connected to false.
|
| // Returns true if gatt was disconnected.
|
|
|