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

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

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 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
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 9851e71b78a19e4687b6c0d1e864a478815f3dde..6e4ebc4bb04973e9d4ea0a5aa654d76dd9064b18 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
@@ -117,7 +117,7 @@ PeerConnectionDependencyFactory::~PeerConnectionDependencyFactory() {
DCHECK(!pc_factory_);
}
-blink::WebRTCPeerConnectionHandler*
+std::unique_ptr<blink::WebRTCPeerConnectionHandler>
PeerConnectionDependencyFactory::CreateRTCPeerConnectionHandler(
blink::WebRTCPeerConnectionHandlerClient* client) {
// Save histogram data so we can see how much PeerConnetion is used.
@@ -125,7 +125,7 @@ PeerConnectionDependencyFactory::CreateRTCPeerConnectionHandler(
// webKitRTCPeerConnection.
UpdateWebRTCMethodCount(WEBKIT_RTC_PEER_CONNECTION);
- return new RTCPeerConnectionHandler(client, this);
+ return base::MakeUnique<RTCPeerConnectionHandler>(client, this);
}
const scoped_refptr<webrtc::PeerConnectionFactoryInterface>&

Powered by Google App Engine
This is Rietveld 408576698