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; |