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

Unified Diff: chrome/browser/net/proxy_service_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
Index: chrome/browser/net/proxy_service_factory.cc
diff --git a/chrome/browser/net/proxy_service_factory.cc b/chrome/browser/net/proxy_service_factory.cc
index c67427c247ef97197d9e5bd54e1233e4b8df6f39..9197793ecf49dd603bb9d4e04568a5ad0c0d532b 100644
--- a/chrome/browser/net/proxy_service_factory.cc
+++ b/chrome/browser/net/proxy_service_factory.cc
@@ -76,8 +76,8 @@ ProxyServiceFactory::CreateProxyConfigService(PrefProxyConfigTracker* tracker) {
// that code be moved to chrome/browser instead of being in net, so that it
// can use BrowserThread instead of raw MessageLoop pointers? See bug 25354.
base_service = net::ProxyService::CreateSystemProxyConfigService(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO),
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE));
#endif // !defined(OS_CHROMEOS)
return tracker->CreateTrackingProxyConfigService(std::move(base_service));
@@ -92,8 +92,7 @@ ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
return new chromeos::ProxyConfigServiceImpl(profile_prefs, local_state_prefs);
#else
return new PrefProxyConfigTrackerImpl(
- profile_prefs,
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
+ profile_prefs, BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
#endif // defined(OS_CHROMEOS)
}
@@ -106,7 +105,7 @@ ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
#else
return new PrefProxyConfigTrackerImpl(
local_state_prefs,
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
#endif // defined(OS_CHROMEOS)
}

Powered by Google App Engine
This is Rietveld 408576698