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

Unified Diff: third_party/WebKit/Source/modules/vibration/NavigatorVibration.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/vibration/NavigatorVibration.cpp
diff --git a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
index 77c0ce17a2369290356d15bd872b5cb3c38f69a3..8b2139a623e3304ca05be6f28a136173dd5a45ab 100644
--- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
+++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
@@ -34,7 +34,8 @@
namespace blink {
NavigatorVibration::NavigatorVibration(Navigator& navigator)
- : ContextLifecycleObserver(navigator.frame()->document()) {}
+ : Supplement<Navigator>(navigator),
+ ContextLifecycleObserver(navigator.frame()->document()) {}
sof 2017/01/23 08:19:17 Need a frame() null check here as well?
NavigatorVibration::~NavigatorVibration() {}

Powered by Google App Engine
This is Rietveld 408576698