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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 40ee8178b432eecbef874b0bcb15e276cc1249d5..bfea304d422f680c4dc02f746109fd8162f2c7ef 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -841,7 +841,7 @@ void ProfileSyncService::OnUnrecoverableErrorImpl(
<< " -- ProfileSyncService unusable: " << message;
// Shut all data types down.
- MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&ProfileSyncService::ShutdownImpl, weak_factory_.GetWeakPtr(),
delete_sync_database));
}
@@ -864,7 +864,7 @@ void ProfileSyncService::DisableBrokenDatatype(
failed_datatypes_handler_.UpdateFailedDatatypes(errors,
FailedDatatypesHandler::RUNTIME);
- MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&ProfileSyncService::ReconfigureDatatypeManager,
weak_factory_.GetWeakPtr()));
}
@@ -967,7 +967,7 @@ void ProfileSyncService::OnSyncCycleCompleted() {
// model associator listens too. Also consider somehow plumbing the current
// server time as last reported by CheckServerReachable, so we don't have to
// rely on the local clock, which may be off significantly.
- MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&browser_sync::SessionModelAssociator::DeleteStaleSessions,
GetSessionModelAssociator()->AsWeakPtr()));
}
@@ -1302,7 +1302,7 @@ void ProfileSyncService::OnConfigureDone(
}
// Now handle partial success and full success.
- MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&ProfileSyncService::OnSyncConfigureDone,
weak_factory_.GetWeakPtr(), result));

Powered by Google App Engine
This is Rietveld 408576698