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

Unified Diff: third_party/WebKit/Source/web/ContextFeaturesClientImpl.h

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/web/ContextFeaturesClientImpl.h
diff --git a/third_party/WebKit/Source/web/ContextFeaturesClientImpl.h b/third_party/WebKit/Source/web/ContextFeaturesClientImpl.h
index 64b5b07aee991c4e3f62854cb1971baf0470ae5b..3e1b9e3e6e81edaab94c31e7fb91d133ce390acb 100644
--- a/third_party/WebKit/Source/web/ContextFeaturesClientImpl.h
+++ b/third_party/WebKit/Source/web/ContextFeaturesClientImpl.h
@@ -32,14 +32,16 @@
#define ContextFeaturesClientImpl_h
#include "core/dom/ContextFeatures.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
class ContextFeaturesClientImpl final : public ContextFeaturesClient {
public:
- static PassOwnPtr<ContextFeaturesClientImpl> create()
+ static std::unique_ptr<ContextFeaturesClientImpl> create()
{
- return adoptPtr(new ContextFeaturesClientImpl());
+ return wrapUnique(new ContextFeaturesClientImpl());
}
bool isEnabled(Document*, ContextFeatures::FeatureType, bool defaultValue) override;
« no previous file with comments | « third_party/WebKit/Source/web/CompositorMutatorImpl.cpp ('k') | third_party/WebKit/Source/web/DateTimeChooserImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698