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

Unified Diff: third_party/WebKit/Source/core/events/EventFactory.h

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/EventFactory.h
diff --git a/third_party/WebKit/Source/core/events/EventFactory.h b/third_party/WebKit/Source/core/events/EventFactory.h
index 78b6de61e7b8c15e68133464a170babc78d242eb..01f7c688c2d7710565b25343346686eb0f8ef2e1 100644
--- a/third_party/WebKit/Source/core/events/EventFactory.h
+++ b/third_party/WebKit/Source/core/events/EventFactory.h
@@ -29,9 +29,7 @@
#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 {
@@ -50,9 +48,9 @@ protected:
class EventFactory final : public EventFactoryBase {
public:
- static std::unique_ptr<EventFactory> create()
+ static PassOwnPtr<EventFactory> create()
{
- return wrapUnique(new EventFactory());
+ return adoptPtr(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