Index: net/socket/socket_posix.cc |
diff --git a/net/socket/socket_posix.cc b/net/socket/socket_posix.cc |
index cd7aff12d34559cf2ede0fe6144a849c10018f97..a18e22d2c2b924c562535138d65b10975cea3c35 100644 |
--- a/net/socket/socket_posix.cc |
+++ b/net/socket/socket_posix.cc |
@@ -7,6 +7,7 @@ |
#include <errno.h> |
#include <netinet/in.h> |
#include <sys/socket.h> |
+#include <utility> |
#include "base/callback_helpers.h" |
#include "base/files/file_util.h" |
@@ -377,7 +378,7 @@ int SocketPosix::DoAccept(scoped_ptr<SocketPosix>* socket) { |
if (rv != OK) |
return rv; |
- *socket = accepted_socket.Pass(); |
+ *socket = std::move(accepted_socket); |
return OK; |
} |