Index: remoting/host/setup/start_host.cc |
diff --git a/remoting/host/setup/start_host.cc b/remoting/host/setup/start_host.cc |
index 99580418dad8556dc55de9be0656b0f2bf87931c..ef4465505b9da2ecf22fc6fd542feb4e3e748a16 100644 |
--- a/remoting/host/setup/start_host.cc |
+++ b/remoting/host/setup/start_host.cc |
@@ -145,12 +145,15 @@ int main(int argc, char** argv) { |
// Provide message loops and threads for the URLRequestContextGetter. |
base::MessageLoop message_loop; |
g_message_loop = &message_loop; |
- base::Thread io_thread("IO thread"); |
base::Thread::Options io_thread_options(base::MessageLoop::TYPE_IO, 0); |
+ base::Thread io_thread("IO thread"); |
io_thread.StartWithOptions(io_thread_options); |
+ base::Thread file_thread("file thread"); |
+ file_thread.StartWithOptions(io_thread_options); |
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter( |
- new remoting::URLRequestContextGetter(io_thread.message_loop_proxy())); |
+ new remoting::URLRequestContextGetter(io_thread.task_runner(), |
+ file_thread.task_runner())); |
net::URLFetcher::SetIgnoreCertificateRequests(true); |