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

Unified Diff: third_party/WebKit/Source/core/events/EventFactory.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/core/events/EventFactory.h
diff --git a/third_party/WebKit/Source/core/events/EventFactory.h b/third_party/WebKit/Source/core/events/EventFactory.h
index 01f7c688c2d7710565b25343346686eb0f8ef2e1..78b6de61e7b8c15e68133464a170babc78d242eb 100644
--- a/third_party/WebKit/Source/core/events/EventFactory.h
+++ b/third_party/WebKit/Source/core/events/EventFactory.h
@@ -29,7 +29,9 @@
#include "platform/heap/Handle.h"
#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/text/AtomicString.h"
+#include <memory>
namespace blink {
@@ -48,9 +50,9 @@ protected:
class EventFactory final : public EventFactoryBase {
public:
- static PassOwnPtr<EventFactory> create()
+ static std::unique_ptr<EventFactory> create()
{
- return adoptPtr(new EventFactory());
+ return wrapUnique(new EventFactory());
}
Event* create(ExecutionContext*, const String& eventType) override;
« no previous file with comments | « third_party/WebKit/Source/core/events/ErrorEvent.cpp ('k') | third_party/WebKit/Source/core/events/EventListenerMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698