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