Index: webrtc/base/asynctcpsocket.cc |
diff --git a/webrtc/base/asynctcpsocket.cc b/webrtc/base/asynctcpsocket.cc |
index 65ec0f287bbe8f53333bdd33a3cf7cb96bbad610..120bcfbb64cddb7577d1200d6932b95ea7dbfba5 100644 |
--- a/webrtc/base/asynctcpsocket.cc |
+++ b/webrtc/base/asynctcpsocket.cc |
@@ -13,6 +13,7 @@ |
#include <string.h> |
#include <algorithm> |
+#include <memory> |
#include "webrtc/base/byteorder.h" |
#include "webrtc/base/checks.h" |
@@ -44,7 +45,7 @@ AsyncSocket* AsyncTCPSocketBase::ConnectSocket( |
rtc::AsyncSocket* socket, |
const rtc::SocketAddress& bind_address, |
const rtc::SocketAddress& remote_address) { |
- rtc::scoped_ptr<rtc::AsyncSocket> owned_socket(socket); |
+ std::unique_ptr<rtc::AsyncSocket> owned_socket(socket); |
if (socket->Bind(bind_address) < 0) { |
LOG(LS_ERROR) << "Bind() failed with error " << socket->GetError(); |
return NULL; |