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

Unified Diff: remoting/host/chromoting_host_context.cc

Issue 10173009: Always create URLRequestContextGetter in ChromotingHostContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | remoting/host/url_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host_context.cc
diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc
index 57571a99f18872703b391889446168a77d125898..1eaa4540cb8fe85ed1ce28cc2d1216bface4ff86 100644
--- a/remoting/host/chromoting_host_context.cc
+++ b/remoting/host/chromoting_host_context.cc
@@ -37,13 +37,9 @@ bool ChromotingHostContext::Start() {
if (!started)
return false;
- // net::ProxyService::CreateSystemProxyConfigService requires a UI thread.
- // TODO(jamiewalch): Clean up this dependency.
- MessageLoop* loop = MessageLoop::current();
- if (loop && loop->type() == MessageLoop::TYPE_UI) {
- url_request_context_getter_ = new URLRequestContextGetter(
- io_thread_.message_loop(), file_thread_.message_loop());
- }
+ url_request_context_getter_ = new URLRequestContextGetter(
+ ui_message_loop_, io_thread_.message_loop(),
+ static_cast<MessageLoopForIO*>(file_thread_.message_loop()));
return true;
}
« no previous file with comments | « no previous file | remoting/host/url_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698