Index: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
index 9cd0c9a71c4865b6324dfb1fd2540fafd607fd7b..c1f8016bf39604cb268a4731cdf76a064d8da59a 100644 |
--- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp |
@@ -503,8 +503,7 @@ RTCPeerConnection::RTCPeerConnection(ExecutionContext* context, |
return; |
} |
- peer_handler_ = WTF::WrapUnique( |
- Platform::Current()->CreateRTCPeerConnectionHandler(this)); |
+ peer_handler_ = Platform::Current()->CreateRTCPeerConnectionHandler(this); |
if (!peer_handler_) { |
closed_ = true; |
stopped_ = true; |
@@ -925,7 +924,7 @@ ScriptPromise RTCPeerConnection::generateCertificate( |
DCHECK(!key_params.IsNull()); |
std::unique_ptr<WebRTCCertificateGenerator> certificate_generator = |
- WTF::WrapUnique(Platform::Current()->CreateRTCCertificateGenerator()); |
+ Platform::Current()->CreateRTCCertificateGenerator(); |
// |keyParams| was successfully constructed, but does the certificate |
// generator support these parameters? |