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

Unified Diff: chromecast/browser/url_request_context_factory.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/renderer/cast_render_thread_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/url_request_context_factory.cc
diff --git a/chromecast/browser/url_request_context_factory.cc b/chromecast/browser/url_request_context_factory.cc
index b7c118be63b1fe0453eab520cccc844c62b2ed0e..f0e7d7f6ad5344cbfb3819843f40aa624cc6dae4 100644
--- a/chromecast/browser/url_request_context_factory.cc
+++ b/chromecast/browser/url_request_context_factory.cc
@@ -80,7 +80,7 @@ class URLRequestContextFactory::URLRequestContextGetter
scoped_refptr<base::SingleThreadTaskRunner>
GetNetworkTaskRunner() const override {
- return content::BrowserThread::GetMessageLoopProxyForThread(
+ return content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::IO);
}
@@ -122,7 +122,7 @@ class URLRequestContextFactory::MainURLRequestContextGetter
scoped_refptr<base::SingleThreadTaskRunner>
GetNetworkTaskRunner() const override {
- return content::BrowserThread::GetMessageLoopProxyForThread(
+ return content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::IO);
}
@@ -159,9 +159,9 @@ void URLRequestContextFactory::InitializeOnUIThread(net::NetLog* net_log) {
// Proxy config service should be initialized in UI thread, since
// ProxyConfigServiceDelegate on Android expects UI thread.
proxy_config_service_ = net::ProxyService::CreateSystemProxyConfigService(
- content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::IO),
- content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::FILE));
net_log_ = net_log;
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/renderer/cast_render_thread_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698