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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.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/platform/mediastream/MediaStreamCenter.h
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.h b/third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.h
index c66695560169ca1d87c713e1613213304da381c4..a3b047e63676b95089cd7b192c7a0b809028d379 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.h
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.h
@@ -35,9 +35,9 @@
#include "platform/heap/Handle.h"
#include "public/platform/WebMediaStreamCenterClient.h"
#include "wtf/Allocator.h"
-#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -59,7 +59,7 @@ public:
void didCreateMediaStreamTrack(MediaStreamComponent*);
void didSetMediaStreamTrackEnabled(MediaStreamComponent*);
bool didStopMediaStreamTrack(MediaStreamComponent*);
- PassOwnPtr<AudioSourceProvider> createWebAudioSourceFromMediaStreamTrack(MediaStreamComponent*);
+ std::unique_ptr<AudioSourceProvider> createWebAudioSourceFromMediaStreamTrack(MediaStreamComponent*);
void didCreateMediaStream(MediaStreamDescriptor*);
void didCreateMediaStreamAndTracks(MediaStreamDescriptor*);
@@ -73,7 +73,7 @@ public:
private:
MediaStreamCenter();
- OwnPtr<WebMediaStreamCenter> m_private;
+ std::unique_ptr<WebMediaStreamCenter> m_private;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698