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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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)));
}
« 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