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

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

Issue 2466513002: Deprecate ServiceWorkerMessageEvent in favor of MessageEvent (Closed)
Patch Set: Rebase and update cross-origin-objects-exceptions-expected.txt Created 4 years 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 5f06610b8c07c4ca85dfe04dbb675c5c80358e77..12d4e698239fabaed854ae7a14c38637109c442b 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