| Index: remoting/protocol/webrtc_transport.cc
|
| diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc
|
| index c813e6e91135265fed737091e7211470beff5266..4d6aaf5dc107c534106433146b2c98fffa4c1d83 100644
|
| --- a/remoting/protocol/webrtc_transport.cc
|
| +++ b/remoting/protocol/webrtc_transport.cc
|
| @@ -250,8 +250,8 @@ std::unique_ptr<MessagePipe> WebrtcTransport::CreateOutgoingChannel(
|
| const std::string& name) {
|
| webrtc::DataChannelInit config;
|
| config.reliable = true;
|
| - return base::WrapUnique(new WebrtcDataStreamAdapter(
|
| - peer_connection()->CreateDataChannel(name, &config)));
|
| + return base::MakeUnique<WebrtcDataStreamAdapter>(
|
| + peer_connection()->CreateDataChannel(name, &config));
|
| }
|
|
|
| void WebrtcTransport::Start(
|
| @@ -521,7 +521,7 @@ void WebrtcTransport::OnDataChannel(
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| event_handler_->OnWebrtcTransportIncomingDataChannel(
|
| data_channel->label(),
|
| - base::WrapUnique(new WebrtcDataStreamAdapter(data_channel)));
|
| + base::MakeUnique<WebrtcDataStreamAdapter>(data_channel));
|
| }
|
|
|
| void WebrtcTransport::OnRenegotiationNeeded() {
|
|
|