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

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

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/web/MIDIClientProxy.h
diff --git a/third_party/WebKit/Source/web/MIDIClientProxy.h b/third_party/WebKit/Source/web/MIDIClientProxy.h
index 9f8cefaf0acb0a8b21632a288065d53166210dc9..05395e8dbbc8ed57825ba5b4a26d8ee8ed073fcc 100644
--- a/third_party/WebKit/Source/web/MIDIClientProxy.h
+++ b/third_party/WebKit/Source/web/MIDIClientProxy.h
@@ -33,8 +33,6 @@
#include "modules/webmidi/MIDIClient.h"
#include "platform/heap/Handle.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -44,9 +42,9 @@ class WebMIDIClient;
class MIDIClientProxy final : public MIDIClient {
public:
- static std::unique_ptr<MIDIClientProxy> create(WebMIDIClient* client)
+ static PassOwnPtr<MIDIClientProxy> create(WebMIDIClient* client)
{
- return wrapUnique(new MIDIClientProxy(client));
+ return adoptPtr(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