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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 8 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/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_);
}

Powered by Google App Engine
This is Rietveld 408576698