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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp

Issue 2649073002: Use a new Supplement constructor in Navigator supplements (part 2) (Closed)
Patch Set: temp Created 3 years, 11 months 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/NavigatorServiceWorker.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
index 73160f042ade6669ce253c8138413baca46ac274..cf1cc10cf36c6a05af88fe322b6e82c2a13d122c 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
@@ -12,7 +12,8 @@
namespace blink {
-NavigatorServiceWorker::NavigatorServiceWorker(Navigator& navigator) {}
+NavigatorServiceWorker::NavigatorServiceWorker(Navigator& navigator)
+ : Supplement<Navigator>(navigator) {}
NavigatorServiceWorker* NavigatorServiceWorker::from(Document& document) {
if (!document.frame() || !document.frame()->domWindow())

Powered by Google App Engine
This is Rietveld 408576698