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

Unified Diff: third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 006b5a85c02d8b70071f2953545d959cddea5a87..3b36ffbd070094d11d50a53265189720a917bc6f 100644
--- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
+++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
@@ -184,10 +184,10 @@ bool NavigatorVibration::vibrate(Navigator& navigator, const VibrationPattern& p
NavigatorVibration& NavigatorVibration::from(Page& page)
{
- NavigatorVibration* navigatorVibration = static_cast<NavigatorVibration*>(HeapSupplement<Page>::from(page, supplementName()));
+ NavigatorVibration* navigatorVibration = static_cast<NavigatorVibration*>(Supplement<Page>::from(page, supplementName()));
if (!navigatorVibration) {
navigatorVibration = new NavigatorVibration(page);
- HeapSupplement<Page>::provideTo(page, supplementName(), navigatorVibration);
+ Supplement<Page>::provideTo(page, supplementName(), navigatorVibration);
}
return *navigatorVibration;
}
@@ -199,7 +199,7 @@ const char* NavigatorVibration::supplementName()
DEFINE_TRACE(NavigatorVibration)
{
- HeapSupplement<Page>::trace(visitor);
+ Supplement<Page>::trace(visitor);
PageLifecycleObserver::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698