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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build 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/crypto/WorkerGlobalScopeCrypto.cpp
diff --git a/third_party/WebKit/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp b/third_party/WebKit/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
index 864e3349ef170c345d07aad15b32bf149ca6a08e..92d15283c2404c0b870cbb9e1bd7ddfb867c5e60 100644
--- a/third_party/WebKit/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
+++ b/third_party/WebKit/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
@@ -44,17 +44,17 @@ const char* WorkerGlobalScopeCrypto::supplementName()
return "WorkerGlobalScopeCrypto";
}
-WorkerGlobalScopeCrypto& WorkerGlobalScopeCrypto::from(HeapSupplementable<WorkerGlobalScope>& context)
+WorkerGlobalScopeCrypto& WorkerGlobalScopeCrypto::from(Supplementable<WorkerGlobalScope>& context)
{
- WorkerGlobalScopeCrypto* supplement = static_cast<WorkerGlobalScopeCrypto*>(HeapSupplement<WorkerGlobalScope>::from(context, supplementName()));
+ WorkerGlobalScopeCrypto* supplement = static_cast<WorkerGlobalScopeCrypto*>(Supplement<WorkerGlobalScope>::from(context, supplementName()));
if (!supplement) {
- supplement = new WorkerGlobalScopeCrypto();
- provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement));
+ supplement = new WorkerGlobalScopeCrypto;
+ provideTo(context, supplementName(), supplement);
}
return *supplement;
}
-Crypto* WorkerGlobalScopeCrypto::crypto(HeapSupplementable<WorkerGlobalScope>& context)
+Crypto* WorkerGlobalScopeCrypto::crypto(Supplementable<WorkerGlobalScope>& context)
{
return WorkerGlobalScopeCrypto::from(context).crypto();
}
@@ -69,7 +69,7 @@ Crypto* WorkerGlobalScopeCrypto::crypto() const
DEFINE_TRACE(WorkerGlobalScopeCrypto)
{
visitor->trace(m_crypto);
- HeapSupplement<WorkerGlobalScope>::trace(visitor);
+ Supplement<WorkerGlobalScope>::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698