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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp

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: 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?

Powered by Google App Engine
This is Rietveld 408576698