Index: Source/web/ContextFeaturesClientImpl.cpp |
diff --git a/Source/web/ContextFeaturesClientImpl.cpp b/Source/web/ContextFeaturesClientImpl.cpp |
index ad647efbf5b2082c1e54301edf79f6311186e769..aad86acc2a382bff585ad724155896da3756ceff 100644 |
--- a/Source/web/ContextFeaturesClientImpl.cpp |
+++ b/Source/web/ContextFeaturesClientImpl.cpp |
@@ -41,7 +41,8 @@ using namespace WebCore; |
namespace blink { |
-class ContextFeaturesCache : public DocumentSupplement { |
+class ContextFeaturesCache FINAL : public NoBaseWillBeGarbageCollectedFinalized<ContextFeaturesCache>, public DocumentSupplement { |
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ContextFeaturesCache); |
public: |
class Entry { |
public: |
@@ -107,7 +108,7 @@ ContextFeaturesCache& ContextFeaturesCache::from(Document& document) |
ContextFeaturesCache* cache = static_cast<ContextFeaturesCache*>(DocumentSupplement::from(document, supplementName())); |
if (!cache) { |
cache = new ContextFeaturesCache(); |
- DocumentSupplement::provideTo(document, supplementName(), adoptPtr(cache)); |
+ DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBeNoop(cache)); |
} |
return *cache; |