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

Unified Diff: third_party/WebKit/Source/core/events/ScopedEventQueue.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/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)

Powered by Google App Engine
This is Rietveld 408576698