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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/MIDIAccessor.cpp
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp
index 262b448aea3da0fffa4ad66ee0d825dfd6953d5f..47d2bce820b001c3b68544ac082dc7ccf1297283 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp
@@ -32,18 +32,16 @@
#include "modules/webmidi/MIDIAccessorClient.h"
#include "public/platform/Platform.h"
-#include "wtf/PtrUtil.h"
#include "wtf/text/WTFString.h"
-#include <memory>
using blink::WebString;
namespace blink {
// Factory method
-std::unique_ptr<MIDIAccessor> MIDIAccessor::create(MIDIAccessorClient* client)
+PassOwnPtr<MIDIAccessor> MIDIAccessor::create(MIDIAccessorClient* client)
{
- return wrapUnique(new MIDIAccessor(client));
+ return adoptPtr(new MIDIAccessor(client));
}
MIDIAccessor::MIDIAccessor(MIDIAccessorClient* client)
@@ -51,7 +49,7 @@ MIDIAccessor::MIDIAccessor(MIDIAccessorClient* client)
{
DCHECK(client);
- m_accessor = wrapUnique(Platform::current()->createMIDIAccessor(this));
+ m_accessor = adoptPtr(Platform::current()->createMIDIAccessor(this));
DCHECK(m_accessor);
}
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698