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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.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/cachestorage/GlobalCacheStorage.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.cpp b/third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.cpp
index 36fa22226158bfd0a8ec11664b118e42e2878877..84505c6c49c01a85aa1c38c06cf5e3b194011275 100644
--- a/third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.cpp
@@ -19,15 +19,15 @@ namespace blink {
namespace {
template <typename T>
-class GlobalCacheStorageImpl final : public GarbageCollectedFinalized<GlobalCacheStorageImpl<T>>, public HeapSupplement<T> {
+class GlobalCacheStorageImpl final : public GarbageCollectedFinalized<GlobalCacheStorageImpl<T>>, public Supplement<T> {
USING_GARBAGE_COLLECTED_MIXIN(GlobalCacheStorageImpl);
public:
static GlobalCacheStorageImpl& from(T& supplementable, ExecutionContext* executionContext)
{
- GlobalCacheStorageImpl* supplement = static_cast<GlobalCacheStorageImpl*>(HeapSupplement<T>::from(supplementable, name()));
+ GlobalCacheStorageImpl* supplement = static_cast<GlobalCacheStorageImpl*>(Supplement<T>::from(supplementable, name()));
if (!supplement) {
- supplement = new GlobalCacheStorageImpl();
- HeapSupplement<T>::provideTo(supplementable, name(), supplement);
+ supplement = new GlobalCacheStorageImpl;
+ Supplement<T>::provideTo(supplementable, name(), supplement);
}
return *supplement;
}
@@ -62,7 +62,7 @@ public:
DEFINE_INLINE_VIRTUAL_TRACE()
{
visitor->trace(m_caches);
- HeapSupplement<T>::trace(visitor);
+ Supplement<T>::trace(visitor);
}
private:

Powered by Google App Engine
This is Rietveld 408576698