| Index: Source/core/dom/ContextFeatures.cpp
|
| diff --git a/Source/core/dom/ContextFeatures.cpp b/Source/core/dom/ContextFeatures.cpp
|
| index 377c50e69cd79fe232d5d78ff787dffa94afaca7..19dfa9486cd16b0563204b85fb05ed381a435800 100644
|
| --- a/Source/core/dom/ContextFeatures.cpp
|
| +++ b/Source/core/dom/ContextFeatures.cpp
|
| @@ -33,10 +33,9 @@
|
|
|
| namespace WebCore {
|
|
|
| -ContextFeaturesClient* ContextFeaturesClient::empty()
|
| +PassOwnPtr<ContextFeaturesClient> ContextFeaturesClient::empty()
|
| {
|
| - DEFINE_STATIC_LOCAL(ContextFeaturesClient, empty, ());
|
| - return ∅
|
| + return adoptPtr(new ContextFeaturesClient());
|
| }
|
|
|
| const char* ContextFeatures::supplementName()
|
| @@ -84,7 +83,7 @@ bool ContextFeatures::pushStateEnabled(Document* document)
|
| return document->contextFeatures().isEnabled(document, PushState, true);
|
| }
|
|
|
| -void provideContextFeaturesTo(Page& page, ContextFeaturesClient* client)
|
| +void provideContextFeaturesTo(Page& page, PassOwnPtr<ContextFeaturesClient> client)
|
| {
|
| RefCountedSupplement<Page, ContextFeatures>::provideTo(page, ContextFeatures::supplementName(), ContextFeatures::create(client));
|
| }
|
|
|