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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccess.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/webmidi/MIDIAccess.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
index 6484a2058af02fac36b82cd2d63d77e1c0ceef6a..b6e61ad8f872d9f91a62c1ac0b5e418f61b2c3b2 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
@@ -40,6 +40,7 @@
#include "modules/webmidi/MIDIAccessorClient.h"
#include "platform/heap/Handle.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -54,7 +55,7 @@ class MIDIAccess final : public EventTargetWithInlineData, public ActiveScriptWr
USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
USING_PRE_FINALIZER(MIDIAccess, dispose);
public:
- static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext* executionContext)
+ static MIDIAccess* create(std::unique_ptr<MIDIAccessor> accessor, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext* executionContext)
{
MIDIAccess* access = new MIDIAccess(std::move(accessor), sysexEnabled, ports, executionContext);
access->suspendIfNeeded();
@@ -102,10 +103,10 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- MIDIAccess(PassOwnPtr<MIDIAccessor>, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>&, ExecutionContext*);
+ MIDIAccess(std::unique_ptr<MIDIAccessor>, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>&, ExecutionContext*);
void dispose();
- OwnPtr<MIDIAccessor> m_accessor;
+ std::unique_ptr<MIDIAccessor> m_accessor;
bool m_sysexEnabled;
bool m_hasPendingActivity;
HeapVector<Member<MIDIInput>> m_inputs;

Powered by Google App Engine
This is Rietveld 408576698