Index: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp |
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp |
index 4ba03dc451b92f46a92faa3d220ec5cacf26d871..cdb2d1b188a4edaa32ce8087d684b1fc9cef21f9 100644 |
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp |
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp |
@@ -35,6 +35,7 @@ |
#include "platform/wtf/PtrUtil.h" |
#include "platform/wtf/text/WTFString.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/modules/webmidi/WebMIDIAccessor.h" |
using blink::WebString; |
using midi::mojom::PortState; |
@@ -50,7 +51,7 @@ std::unique_ptr<MIDIAccessor> MIDIAccessor::Create(MIDIAccessorClient* client) { |
MIDIAccessor::MIDIAccessor(MIDIAccessorClient* client) : client_(client) { |
DCHECK(client); |
- accessor_ = WTF::WrapUnique(Platform::Current()->CreateMIDIAccessor(this)); |
+ accessor_ = Platform::Current()->CreateMIDIAccessor(this); |
DCHECK(accessor_); |
} |