diff options
Diffstat (limited to 'net/test/test_server_win.cc')
-rw-r--r-- | net/test/test_server_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/test/test_server_win.cc b/net/test/test_server_win.cc index 5d7fa88..ee62d1df 100644 --- a/net/test/test_server_win.cc +++ b/net/test/test_server_win.cc @@ -8,6 +8,7 @@ #include <wincrypt.h> #include "base/base_paths.h" +#include "base/bind.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/message_loop.h" @@ -50,8 +51,7 @@ bool ReadData(HANDLE read_fd, HANDLE write_fd, // Prepare a timeout in case the server fails to start. bool unblocked = false; thread.message_loop()->PostDelayedTask( - FROM_HERE, - NewRunnableFunction(UnblockPipe, write_fd, bytes_max, &unblocked), + FROM_HERE, base::Bind(UnblockPipe, write_fd, bytes_max, &unblocked), TestTimeouts::action_timeout_ms()); DWORD bytes_read = 0; |