Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: remoting/host/setup/start_host.cc

Issue 542473002: Uses ProxyConfigServiceLinux in the chromoting host to configure proxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698