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>& |