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

Unified Diff: third_party/WebKit/Source/web/ContextFeaturesClientImpl.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/web/ContextFeaturesClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp b/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp
index acb7180a9f9c5acdcd2705d51eee674a20fe8fbb..a66d77b084c93d7b63f47ab303fb9ec06cdf4055 100644
--- a/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp
@@ -38,7 +38,7 @@
namespace blink {
-class ContextFeaturesCache final : public GarbageCollectedFinalized<ContextFeaturesCache>, public HeapSupplement<Document> {
+class ContextFeaturesCache final : public GarbageCollectedFinalized<ContextFeaturesCache>, public Supplement<Document> {
USING_GARBAGE_COLLECTED_MIXIN(ContextFeaturesCache);
public:
class Entry {
@@ -90,7 +90,7 @@ public:
DEFINE_INLINE_VIRTUAL_TRACE()
{
- HeapSupplement<Document>::trace(visitor);
+ Supplement<Document>::trace(visitor);
}
private:
@@ -105,10 +105,10 @@ const char* ContextFeaturesCache::supplementName()
ContextFeaturesCache& ContextFeaturesCache::from(Document& document)
{
- ContextFeaturesCache* cache = static_cast<ContextFeaturesCache*>(HeapSupplement<Document>::from(document, supplementName()));
+ ContextFeaturesCache* cache = static_cast<ContextFeaturesCache*>(Supplement<Document>::from(document, supplementName()));
if (!cache) {
cache = new ContextFeaturesCache();
- HeapSupplement<Document>::provideTo(document, supplementName(), cache);
+ Supplement<Document>::provideTo(document, supplementName(), cache);
}
return *cache;
« no previous file with comments | « third_party/WebKit/Source/platform/Supplementable.h ('k') | third_party/WebKit/Source/web/WorkerContentSettingsClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698