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

Unified Diff: chrome/service/net/service_url_request_context_getter.cc

Issue 1167163002: chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing message_loop.h includes. Created 5 years, 6 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 | « chrome/service/net/service_url_request_context_getter.h ('k') | chrome/service/service_ipc_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/net/service_url_request_context_getter.cc
diff --git a/chrome/service/net/service_url_request_context_getter.cc b/chrome/service/net/service_url_request_context_getter.cc
index cd7526411481bdc3dd8edd7f8abe3412c2588613..3dfbd2bb33278635c7c533d868ae966d4d040875 100644
--- a/chrome/service/net/service_url_request_context_getter.cc
+++ b/chrome/service/net/service_url_request_context_getter.cc
@@ -9,7 +9,7 @@
#endif
#include "base/compiler_specific.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/stringprintf.h"
#include "base/sys_info.h"
#include "chrome/common/chrome_version_info.h"
@@ -96,14 +96,13 @@ std::string MakeUserAgentForServiceProcess() {
ServiceURLRequestContextGetter::ServiceURLRequestContextGetter()
: user_agent_(MakeUserAgentForServiceProcess()),
- network_task_runner_(
- g_service_process->io_thread()->message_loop_proxy()) {
+ network_task_runner_(g_service_process->io_thread()->task_runner()) {
// TODO(sanjeevr): Change CreateSystemProxyConfigService to accept a
- // MessageLoopProxy* instead of MessageLoop*.
+ // SingleThreadTaskRunner* instead of MessageLoop*.
DCHECK(g_service_process);
proxy_config_service_.reset(net::ProxyService::CreateSystemProxyConfigService(
- g_service_process->io_thread()->message_loop_proxy(),
- g_service_process->file_thread()->message_loop_proxy()));
+ g_service_process->io_thread()->task_runner(),
+ g_service_process->file_thread()->task_runner()));
}
net::URLRequestContext*
« no previous file with comments | « chrome/service/net/service_url_request_context_getter.h ('k') | chrome/service/service_ipc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698