Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: third_party/WebKit/Source/core/dom/ContextFeatures.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)));
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContextFeatures.h ('k') | third_party/WebKit/Source/core/dom/CrossThreadTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698