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

Unified Diff: third_party/WebKit/Source/modules/EventModulesFactory.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. 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 e469121424777f10b33e08c921cc3335f8ea2d65..cf5aa10bc023cbd1356a6e83c7cec8d5cb43fbf0 100644
--- a/third_party/WebKit/Source/modules/EventModulesFactory.h
+++ b/third_party/WebKit/Source/modules/EventModulesFactory.h
@@ -8,7 +8,9 @@
#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 {
@@ -16,9 +18,9 @@ class Event;
class EventModulesFactory final : public EventFactoryBase {
public:
- static PassOwnPtr<EventModulesFactory> create()
+ static std::unique_ptr<EventModulesFactory> create()
{
- return adoptPtr(new EventModulesFactory());
+ return wrapUnique(new EventModulesFactory());
}
Event* create(ExecutionContext*, const String& eventType) override;

Powered by Google App Engine
This is Rietveld 408576698