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

Unified Diff: talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm

Issue 1785353003: Replace scoped_ptr with unique_ptr in talk/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | talk/app/webrtc/objc/RTCDataChannel.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
diff --git a/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm b/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
index 9d82283142c19baf3283db2a905464816220714d..8b4e454a6ebe1434c7f54a42d158295fb9163a47 100644
--- a/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
+++ b/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
@@ -32,12 +32,14 @@
#import "RTCPeerConnectionFactory+Internal.h"
#import "RTCVideoSource+Internal.h"
+#include <memory>
+
@implementation RTCAVFoundationVideoSource
- (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory
constraints:(RTCMediaConstraints*)constraints {
NSParameterAssert(factory);
- rtc::scoped_ptr<webrtc::AVFoundationVideoCapturer> capturer;
+ std::unique_ptr<webrtc::AVFoundationVideoCapturer> capturer;
capturer.reset(new webrtc::AVFoundationVideoCapturer());
rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source =
factory.nativeFactory->CreateVideoSource(capturer.release(), constraints.constraints);
« no previous file with comments | « no previous file | talk/app/webrtc/objc/RTCDataChannel.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698