| 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 2e36ae4f009b7914a564a66e46dcb5088fa2523c..c372838aac87c05ec645de62658cb44f5437a0f4 100644
|
| --- a/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp
|
| @@ -84,6 +84,9 @@ class ContextFeaturesCache final
|
| DEFINE_INLINE_VIRTUAL_TRACE() { Supplement<Document>::trace(visitor); }
|
|
|
| private:
|
| + explicit ContextFeaturesCache(Document& document)
|
| + : Supplement<Document>(document) {}
|
| +
|
| String m_domain;
|
| Entry m_entries[ContextFeatures::FeatureTypeSize];
|
| };
|
| @@ -96,7 +99,7 @@ ContextFeaturesCache& ContextFeaturesCache::from(Document& document) {
|
| ContextFeaturesCache* cache = static_cast<ContextFeaturesCache*>(
|
| Supplement<Document>::from(document, supplementName()));
|
| if (!cache) {
|
| - cache = new ContextFeaturesCache();
|
| + cache = new ContextFeaturesCache(document);
|
| Supplement<Document>::provideTo(document, supplementName(), cache);
|
| }
|
|
|
|
|