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

Unified Diff: Source/modules/performance/WorkerGlobalScopePerformance.cpp

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 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: Source/modules/performance/WorkerGlobalScopePerformance.cpp
diff --git a/Source/modules/performance/WorkerGlobalScopePerformance.cpp b/Source/modules/performance/WorkerGlobalScopePerformance.cpp
index 1ecd5be35c3ea0087b287beb279a106a4b2eceb0..8943761f61de94763489c9760cebdd2a821876e1 100644
--- a/Source/modules/performance/WorkerGlobalScopePerformance.cpp
+++ b/Source/modules/performance/WorkerGlobalScopePerformance.cpp
@@ -52,10 +52,10 @@ const char* WorkerGlobalScopePerformance::supplementName()
WorkerGlobalScopePerformance& WorkerGlobalScopePerformance::from(WorkerGlobalScope& context)
{
- WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(WorkerSupplement::from(context, supplementName()));
+ WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(WillBeHeapSupplement<WorkerGlobalScope>::from(context, supplementName()));
if (!supplement) {
supplement = new WorkerGlobalScopePerformance();
- provideTo(context, supplementName(), adoptPtr(supplement));
+ provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -72,4 +72,9 @@ WorkerPerformance* WorkerGlobalScopePerformance::performance()
return m_performance.get();
}
+void WorkerGlobalScopePerformance::trace(Visitor* visitor)
+{
+ visitor->trace(m_performance);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/performance/WorkerGlobalScopePerformance.h ('k') | Source/modules/quota/WorkerNavigatorStorageQuota.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698