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 ee2f3e42a0abcd22e3ec0cb1732ecfedb75dae7e..05d936e500387beae2641e788ca8172fa5937841 100644 |
--- a/third_party/WebKit/Source/core/dom/ContextFeatures.cpp |
+++ b/third_party/WebKit/Source/core/dom/ContextFeatures.cpp |
@@ -29,13 +29,15 @@ |
#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 { |
-PassOwnPtr<ContextFeaturesClient> ContextFeaturesClient::empty() |
+std::unique_ptr<ContextFeaturesClient> ContextFeaturesClient::empty() |
{ |
- return adoptPtr(new ContextFeaturesClient()); |
+ return wrapUnique(new ContextFeaturesClient()); |
} |
const char* ContextFeatures::supplementName() |
@@ -64,7 +66,7 @@ bool ContextFeatures::mutationEventsEnabled(Document* document) |
return document->contextFeatures().isEnabled(document, MutationEvents, true); |
} |
-void provideContextFeaturesTo(Page& page, PassOwnPtr<ContextFeaturesClient> client) |
+void provideContextFeaturesTo(Page& page, std::unique_ptr<ContextFeaturesClient> client) |
{ |
Supplement<Page>::provideTo(page, ContextFeatures::supplementName(), ContextFeatures::create(std::move(client))); |
} |