Chromium Code Reviews| Index: net/socket/socket_libevent.cc |
| diff --git a/net/socket/socket_libevent.cc b/net/socket/socket_libevent.cc |
| index 84bd3a7ea6f048787151d79c91a8ef569ef853c0..1696bf77a68350111295b7fd45709cdbfab9b70e 100644 |
| --- a/net/socket/socket_libevent.cc |
| +++ b/net/socket/socket_libevent.cc |
| @@ -106,6 +106,13 @@ int SocketLibevent::AdoptConnectedSocket(SocketDescriptor socket, |
| return OK; |
| } |
| +SocketDescriptor SocketLibevent::ReleaseConnectedSocket() { |
| + SocketDescriptor tmp_fd = kInvalidSocket; |
| + tmp_fd = socket_fd_; |
|
byungchul
2014/08/27 23:35:51
why not just "SocketDescriptor tmp_fd = socket_fd_
Chris Masone
2014/08/28 17:53:16
...I have no idea :-)
|
| + socket_fd_ = kInvalidSocket; |
| + return tmp_fd; |
| +} |
| + |
| int SocketLibevent::Bind(const SockaddrStorage& address) { |
| DCHECK(thread_checker_.CalledOnValidThread()); |
| DCHECK_NE(kInvalidSocket, socket_fd_); |