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

Unified Diff: chrome/browser/profiles/profile_io_data.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/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 1ac33c4f4d5fec393a781e23d957bf0346542e59..dd0f063f6af5ccb9830cd4a2e1d733384018f5d2 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -482,7 +482,7 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
pref_service);
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner =
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
chrome_http_user_agent_settings_.reset(
new ChromeHttpUserAgentSettings(pref_service));
@@ -895,14 +895,14 @@ void ProfileIOData::InitializeMetricsEnabledStateOnUIThread() {
enable_metrics_.Init(prefs::kCrashReportingEnabled,
g_browser_process->local_state());
enable_metrics_.MoveToThread(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
#else
// Prep the PrefMember and send it to the IO thread, since this value will be
// read from there.
enable_metrics_.Init(metrics::prefs::kMetricsReportingEnabled,
g_browser_process->local_state());
enable_metrics_.MoveToThread(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
#endif // BUILDFLAG(ANDROID_JAVA_UI)
}
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_statistics_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698