Index: third_party/WebKit/Source/core/dom/ContextFeatures.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ContextFeatures.cpp b/third_party/WebKit/Source/core/dom/ContextFeatures.cpp |
index 05d936e500387beae2641e788ca8172fa5937841..ee2f3e42a0abcd22e3ec0cb1732ecfedb75dae7e 100644 |
--- a/third_party/WebKit/Source/core/dom/ContextFeatures.cpp |
+++ b/third_party/WebKit/Source/core/dom/ContextFeatures.cpp |
@@ -29,15 +29,13 @@ |
#include "core/dom/Document.h" |
#include "core/page/Page.h" |
#include "platform/RuntimeEnabledFeatures.h" |
-#include "wtf/PtrUtil.h" |
#include "wtf/StdLibExtras.h" |
-#include <memory> |
namespace blink { |
-std::unique_ptr<ContextFeaturesClient> ContextFeaturesClient::empty() |
+PassOwnPtr<ContextFeaturesClient> ContextFeaturesClient::empty() |
{ |
- return wrapUnique(new ContextFeaturesClient()); |
+ return adoptPtr(new ContextFeaturesClient()); |
} |
const char* ContextFeatures::supplementName() |
@@ -66,7 +64,7 @@ bool ContextFeatures::mutationEventsEnabled(Document* document) |
return document->contextFeatures().isEnabled(document, MutationEvents, true); |
} |
-void provideContextFeaturesTo(Page& page, std::unique_ptr<ContextFeaturesClient> client) |
+void provideContextFeaturesTo(Page& page, PassOwnPtr<ContextFeaturesClient> client) |
{ |
Supplement<Page>::provideTo(page, ContextFeatures::supplementName(), ContextFeatures::create(std::move(client))); |
} |