Index: third_party/WebKit/Source/modules/webmidi/MIDIController.h |
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIController.h b/third_party/WebKit/Source/modules/webmidi/MIDIController.h |
index 4cf7bdfcfe23e434a6d71cac289af1f32a885f25..cdb7d4acc7708e3941ef17bee346944c7511a68c 100644 |
--- a/third_party/WebKit/Source/modules/webmidi/MIDIController.h |
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIController.h |
@@ -33,6 +33,7 @@ |
#include "core/frame/LocalFrame.h" |
#include "platform/heap/Handle.h" |
+#include <memory> |
namespace blink { |
@@ -48,17 +49,17 @@ public: |
void requestPermission(MIDIAccessInitializer*, const MIDIOptions&); |
void cancelPermissionRequest(MIDIAccessInitializer*); |
- static MIDIController* create(PassOwnPtr<MIDIClient>); |
+ static MIDIController* create(std::unique_ptr<MIDIClient>); |
static const char* supplementName(); |
static MIDIController* from(LocalFrame* frame) { return static_cast<MIDIController*>(Supplement<LocalFrame>::from(frame, supplementName())); } |
DEFINE_INLINE_VIRTUAL_TRACE() { Supplement<LocalFrame>::trace(visitor); } |
protected: |
- explicit MIDIController(PassOwnPtr<MIDIClient>); |
+ explicit MIDIController(std::unique_ptr<MIDIClient>); |
private: |
- OwnPtr<MIDIClient> m_client; |
+ std::unique_ptr<MIDIClient> m_client; |
}; |
} // namespace blink |