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

Unified Diff: third_party/WebKit/Source/web/MIDIClientProxy.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/web/MIDIClientProxy.h
diff --git a/third_party/WebKit/Source/web/MIDIClientProxy.h b/third_party/WebKit/Source/web/MIDIClientProxy.h
index 05395e8dbbc8ed57825ba5b4a26d8ee8ed073fcc..9f8cefaf0acb0a8b21632a288065d53166210dc9 100644
--- a/third_party/WebKit/Source/web/MIDIClientProxy.h
+++ b/third_party/WebKit/Source/web/MIDIClientProxy.h
@@ -33,6 +33,8 @@
#include "modules/webmidi/MIDIClient.h"
#include "platform/heap/Handle.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -42,9 +44,9 @@ class WebMIDIClient;
class MIDIClientProxy final : public MIDIClient {
public:
- static PassOwnPtr<MIDIClientProxy> create(WebMIDIClient* client)
+ static std::unique_ptr<MIDIClientProxy> create(WebMIDIClient* client)
{
- return adoptPtr(new MIDIClientProxy(client));
+ return wrapUnique(new MIDIClientProxy(client));
}
// MIDIClient
« no previous file with comments | « third_party/WebKit/Source/web/LocalFileSystemClient.cpp ('k') | third_party/WebKit/Source/web/PageOverlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698