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

Unified Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.cc

Issue 1946553002: WebRTC's scoped_ptr and scoped_ptr.h are going away, so stop using them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « content/renderer/media/rtc_certificate_generator.cc ('k') | remoting/host/desktop_capturer_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc/peer_connection_dependency_factory.cc
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
index 03bc115f2dbce4287614c10cf94c9a99f91fd165..68f5b0ab2ce11c87a2ed3130e06278525960bde2 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
@@ -384,7 +384,7 @@ PeerConnectionDependencyFactory::CreatePeerConnection(
if (!GetPcFactory().get())
return NULL;
- rtc::scoped_ptr<PeerConnectionIdentityStore> identity_store(
+ std::unique_ptr<PeerConnectionIdentityStore> identity_store(
new PeerConnectionIdentityStore(
base::ThreadTaskRunnerHandle::Get(), GetWebRtcSignalingThread(),
GURL(web_frame->document().url()),
@@ -493,7 +493,7 @@ PeerConnectionDependencyFactory::CreatePeerConnection(
} else {
network_manager.reset(new EmptyNetworkManager(network_manager_));
}
- rtc::scoped_ptr<P2PPortAllocator> port_allocator(new P2PPortAllocator(
+ std::unique_ptr<P2PPortAllocator> port_allocator(new P2PPortAllocator(
p2p_socket_dispatcher_, std::move(network_manager), socket_factory_.get(),
port_config, requesting_origin, chrome_worker_thread_.task_runner()));
@@ -506,7 +506,7 @@ PeerConnectionDependencyFactory::CreatePeerConnection(
// static
rtc::scoped_refptr<rtc::RTCCertificate>
PeerConnectionDependencyFactory::GenerateDefaultCertificate() {
- rtc::scoped_ptr<rtc::SSLIdentity> identity(rtc::SSLIdentity::Generate(
+ std::unique_ptr<rtc::SSLIdentity> identity(rtc::SSLIdentity::Generate(
webrtc::kIdentityName, rtc::KeyParams::ECDSA(rtc::EC_NIST_P256)));
return rtc::RTCCertificate::Create(std::move(identity));
}
« no previous file with comments | « content/renderer/media/rtc_certificate_generator.cc ('k') | remoting/host/desktop_capturer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698