Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h

Issue 2466513002: Deprecate ServiceWorkerMessageEvent in favor of MessageEvent (Closed)
Patch Set: Remove ServiceWorkerMessageEvent codes; update layout tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698