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

Unified Diff: third_party/WebKit/Source/core/timing/WorkerGlobalScopePerformance.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/core/timing/WorkerGlobalScopePerformance.cpp
diff --git a/third_party/WebKit/Source/core/timing/WorkerGlobalScopePerformance.cpp b/third_party/WebKit/Source/core/timing/WorkerGlobalScopePerformance.cpp
index 370ed706f4c64fbe85f1e597ae220bf03a96a122..c924fa14d1a747222ee6cda8e3b24105a2fbe084 100644
--- a/third_party/WebKit/Source/core/timing/WorkerGlobalScopePerformance.cpp
+++ b/third_party/WebKit/Source/core/timing/WorkerGlobalScopePerformance.cpp
@@ -46,9 +46,9 @@ const char* WorkerGlobalScopePerformance::supplementName()
WorkerGlobalScopePerformance& WorkerGlobalScopePerformance::from(WorkerGlobalScope& context)
{
- WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(HeapSupplement<WorkerGlobalScope>::from(context, supplementName()));
+ WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(Supplement<WorkerGlobalScope>::from(context, supplementName()));
if (!supplement) {
- supplement = new WorkerGlobalScopePerformance();
+ supplement = new WorkerGlobalScopePerformance;
provideTo(context, supplementName(), supplement);
}
return *supplement;
@@ -69,7 +69,7 @@ WorkerPerformance* WorkerGlobalScopePerformance::performance(WorkerGlobalScope*
DEFINE_TRACE(WorkerGlobalScopePerformance)
{
visitor->trace(m_performance);
- HeapSupplement<WorkerGlobalScope>::trace(visitor);
+ Supplement<WorkerGlobalScope>::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698