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

Unified Diff: Source/modules/crypto/WorkerGlobalScopeCrypto.cpp

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove redundant include Created 6 years, 10 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/crypto/WorkerGlobalScopeCrypto.cpp
diff --git a/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp b/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
index 2442e297aa611ea3fec5f93abbbe3e0f34e96f8c..51b49c43c2b4974dd8f4a4eb9aa0ba54264fa455 100644
--- a/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
+++ b/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
@@ -54,7 +54,7 @@ WorkerGlobalScopeCrypto& WorkerGlobalScopeCrypto::from(WorkerSupplementable& con
WorkerGlobalScopeCrypto* supplement = static_cast<WorkerGlobalScopeCrypto*>(WorkerSupplement::from(context, supplementName()));
if (!supplement) {
supplement = new WorkerGlobalScopeCrypto();
- provideTo(context, supplementName(), adoptPtr(supplement));
+ provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -71,4 +71,9 @@ WorkerCrypto* WorkerGlobalScopeCrypto::crypto() const
return m_crypto.get();
}
+void WorkerGlobalScopeCrypto::trace(Visitor* visitor)
+{
+ visitor->trace(m_crypto);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698