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

Unified Diff: chrome/browser/profiles/profile_statistics_aggregator.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 | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/profiles/profile_statistics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_statistics_aggregator.cc
diff --git a/chrome/browser/profiles/profile_statistics_aggregator.cc b/chrome/browser/profiles/profile_statistics_aggregator.cc
index c8824877f2c9b93863fc108851d469faea98c7e7..303be356b2de11908921c97d8e92f9915ef92862 100644
--- a/chrome/browser/profiles/profile_statistics_aggregator.cc
+++ b/chrome/browser/profiles/profile_statistics_aggregator.cc
@@ -90,8 +90,8 @@ void ProfileStatisticsAggregator::StartAggregator() {
// Initiate bookmark counting (async).
tracker_.PostTask(
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::UI).get(),
+ content::BrowserThread::GetTaskRunnerForThread(content::BrowserThread::UI)
+ .get(),
FROM_HERE,
base::Bind(&ProfileStatisticsAggregator::WaitOrCountBookmarks, this));
@@ -122,12 +122,11 @@ void ProfileStatisticsAggregator::StartAggregator() {
// Initiate preference counting (async).
tracker_.PostTaskAndReplyWithResult(
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::UI).get(),
- FROM_HERE,
- base::Bind(&ProfileStatisticsAggregator::CountPrefs, this),
- base::Bind(&ProfileStatisticsAggregator::StatisticsCallback,
- this, profiles::kProfileStatisticsSettings));
+ content::BrowserThread::GetTaskRunnerForThread(content::BrowserThread::UI)
+ .get(),
+ FROM_HERE, base::Bind(&ProfileStatisticsAggregator::CountPrefs, this),
+ base::Bind(&ProfileStatisticsAggregator::StatisticsCallback, this,
+ profiles::kProfileStatisticsSettings));
}
void ProfileStatisticsAggregator::StatisticsCallback(
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/profiles/profile_statistics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698