Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
index 8e6d683bdea452ab7708275e762aef24930dbb86..33059bb7c71379f1b85b4097794e2b0c1f805b10 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
@@ -69,6 +69,8 @@ class MODULES_EXPORT ServiceWorker final : public AbstractWorker, |
String state() const; |
DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); |
+ ServiceWorker* toServiceWorker() override { return this; } |
+ |
// ScriptWrappable overrides. |
bool hasPendingActivity() const final; |