Chromium Code Reviews| Index: net/socket/unix_domain_client_socket_posix.cc |
| diff --git a/net/socket/unix_domain_client_socket_posix.cc b/net/socket/unix_domain_client_socket_posix.cc |
| index 92fab6faa4189071fa01519c5825ff6b623f2307..6a6d5d8f4eaa584fa3b3b28c67aeaaf36da09ec8 100644 |
| --- a/net/socket/unix_domain_client_socket_posix.cc |
| +++ b/net/socket/unix_domain_client_socket_posix.cc |
| @@ -159,4 +159,13 @@ int UnixDomainClientSocket::SetSendBufferSize(int32 size) { |
| return ERR_NOT_IMPLEMENTED; |
| } |
| +SocketDescriptor UnixDomainClientSocket::ReleaseSocketDescriptor() { |
| + if (socket_) { |
|
byungchul
2014/09/03 00:13:54
Fast return if !socket_
Chris Masone
2014/09/03 02:38:39
Done.
|
| + SocketDescriptor socket_fd = socket_->ReleaseConnectedSocket(); |
| + socket_.reset(); |
| + return socket_fd; |
| + } |
| + return kInvalidSocket; |
| +} |
| + |
| } // namespace net |