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

Unified Diff: webrtc/api/remoteaudiosource.cc

Issue 1930463002: Replace scoped_ptr with unique_ptr in webrtc/api/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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
« no previous file with comments | « webrtc/api/proxy_unittest.cc ('k') | webrtc/api/rtpsender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/remoteaudiosource.cc
diff --git a/webrtc/api/remoteaudiosource.cc b/webrtc/api/remoteaudiosource.cc
index 23cd65cbd8d144e0eef31bc0a1aa4b7b229ff410..2d0785a08f1c9a10de8ec24274c64b445222db05 100644
--- a/webrtc/api/remoteaudiosource.cc
+++ b/webrtc/api/remoteaudiosource.cc
@@ -12,6 +12,7 @@
#include <algorithm>
#include <functional>
+#include <memory>
#include <utility>
#include "webrtc/api/mediastreamprovider.h"
@@ -81,7 +82,7 @@ void RemoteAudioSource::Initialize(uint32_t ssrc,
// we register for callbacks here and not on demand in AddSink.
if (provider) { // May be null in tests.
provider->SetRawAudioSink(
- ssrc, rtc::scoped_ptr<AudioSinkInterface>(new Sink(this)));
+ ssrc, std::unique_ptr<AudioSinkInterface>(new Sink(this)));
}
}
« no previous file with comments | « webrtc/api/proxy_unittest.cc ('k') | webrtc/api/rtpsender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698