| Index: third_party/WebKit/Source/modules/webmidi/MIDIController.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIController.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIController.cpp
|
| index 8ea0a2105c9470684380ffa3c4fdf5f520ea7890..3ae61d70f031bcacc2499bd899560958a972329f 100644
|
| --- a/third_party/WebKit/Source/modules/webmidi/MIDIController.cpp
|
| +++ b/third_party/WebKit/Source/modules/webmidi/MIDIController.cpp
|
| @@ -32,6 +32,7 @@
|
|
|
| #include "modules/webmidi/MIDIAccessInitializer.h"
|
| #include "modules/webmidi/MIDIClient.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -40,7 +41,7 @@ const char* MIDIController::supplementName()
|
| return "MIDIController";
|
| }
|
|
|
| -MIDIController::MIDIController(PassOwnPtr<MIDIClient> client)
|
| +MIDIController::MIDIController(std::unique_ptr<MIDIClient> client)
|
| : m_client(std::move(client))
|
| {
|
| DCHECK(m_client);
|
| @@ -50,7 +51,7 @@ MIDIController::~MIDIController()
|
| {
|
| }
|
|
|
| -MIDIController* MIDIController::create(PassOwnPtr<MIDIClient> client)
|
| +MIDIController* MIDIController::create(std::unique_ptr<MIDIClient> client)
|
| {
|
| return new MIDIController(std::move(client));
|
| }
|
| @@ -65,7 +66,7 @@ void MIDIController::cancelPermissionRequest(MIDIAccessInitializer* initializer)
|
| m_client->cancelPermissionRequest(initializer);
|
| }
|
|
|
| -void provideMIDITo(LocalFrame& frame, PassOwnPtr<MIDIClient> client)
|
| +void provideMIDITo(LocalFrame& frame, std::unique_ptr<MIDIClient> client)
|
| {
|
| MIDIController::provideTo(frame, MIDIController::supplementName(), MIDIController::create(std::move(client)));
|
| }
|
|
|