| Index: net/server/http_server.cc
|
| diff --git a/net/server/http_server.cc b/net/server/http_server.cc
|
| index f496dc7c66fd08327acb39dca69814c121a43357..dbda5fc3effcda78c6e0135f7b4e70ec3bc0bd48 100644
|
| --- a/net/server/http_server.cc
|
| +++ b/net/server/http_server.cc
|
| @@ -8,12 +8,12 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/location.h"
|
| #include "base/logging.h"
|
| -#include "base/message_loop/message_loop_proxy.h"
|
| #include "base/stl_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/sys_byteorder.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "build/build_config.h"
|
| #include "net/base/net_errors.h"
|
| #include "net/server/http_connection.h"
|
| @@ -35,7 +35,7 @@ HttpServer::HttpServer(scoped_ptr<ServerSocket> server_socket,
|
| DCHECK(server_socket_);
|
| // Start accepting connections in next run loop in case when delegate is not
|
| // ready to get callbacks.
|
| - base::MessageLoopProxy::current()->PostTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| FROM_HERE,
|
| base::Bind(&HttpServer::DoAcceptLoop, weak_ptr_factory_.GetWeakPtr()));
|
| }
|
| @@ -115,7 +115,7 @@ void HttpServer::Close(int connection_id) {
|
| // connection. Instead of referencing connection with ID all the time,
|
| // destroys the connection in next run loop to make sure any pending
|
| // callbacks in the call stack return.
|
| - base::MessageLoopProxy::current()->DeleteSoon(FROM_HERE, connection);
|
| + base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, connection);
|
| }
|
|
|
| int HttpServer::GetLocalAddress(IPEndPoint* address) {
|
|
|