Index: third_party/WebKit/Source/core/events/ScopedEventQueue.cpp |
diff --git a/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp b/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp |
index c514ec67fabfe48af3667fc160ef76d074795e34..ea6b55359b9a0224e21c460c872176902dd7c418 100644 |
--- a/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp |
+++ b/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp |
@@ -34,7 +34,8 @@ |
#include "core/events/EventDispatchMediator.h" |
#include "core/events/EventDispatcher.h" |
#include "core/events/EventTarget.h" |
-#include "wtf/OwnPtr.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
@@ -54,8 +55,8 @@ ScopedEventQueue::~ScopedEventQueue() |
void ScopedEventQueue::initialize() |
{ |
ASSERT(!s_instance); |
- OwnPtr<ScopedEventQueue> instance = adoptPtr(new ScopedEventQueue); |
- s_instance = instance.leakPtr(); |
+ std::unique_ptr<ScopedEventQueue> instance = wrapUnique(new ScopedEventQueue); |
+ s_instance = instance.release(); |
} |
void ScopedEventQueue::enqueueEventDispatchMediator(EventDispatchMediator* mediator) |