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

Unified Diff: third_party/WebKit/Source/modules/EventModulesFactory.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/modules/EventModulesFactory.h
diff --git a/third_party/WebKit/Source/modules/EventModulesFactory.h b/third_party/WebKit/Source/modules/EventModulesFactory.h
index cf5aa10bc023cbd1356a6e83c7cec8d5cb43fbf0..e469121424777f10b33e08c921cc3335f8ea2d65 100644
--- a/third_party/WebKit/Source/modules/EventModulesFactory.h
+++ b/third_party/WebKit/Source/modules/EventModulesFactory.h
@@ -8,9 +8,7 @@
#include "core/events/EventFactory.h"
#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
-#include "wtf/PtrUtil.h"
#include "wtf/text/AtomicString.h"
-#include <memory>
namespace blink {
@@ -18,9 +16,9 @@ class Event;
class EventModulesFactory final : public EventFactoryBase {
public:
- static std::unique_ptr<EventModulesFactory> create()
+ static PassOwnPtr<EventModulesFactory> create()
{
- return wrapUnique(new EventModulesFactory());
+ return adoptPtr(new EventModulesFactory());
}
Event* create(ExecutionContext*, const String& eventType) override;

Powered by Google App Engine
This is Rietveld 408576698