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

Unified Diff: components/sync/driver/glue/sync_backend_host_core.cc

Issue 2770933007: [Sync] Replace ClearServerDataCallback with Closure. (Closed)
Patch Set: Created 3 years, 9 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: components/sync/driver/glue/sync_backend_host_core.cc
diff --git a/components/sync/driver/glue/sync_backend_host_core.cc b/components/sync/driver/glue/sync_backend_host_core.cc
index 4c869565117d2238f9ea7eb8a9327ee5e7548a36..2b371ffafb81ba7737a50f7beb1e98372d676093 100644
--- a/components/sync/driver/glue/sync_backend_host_core.cc
+++ b/components/sync/driver/glue/sync_backend_host_core.cc
@@ -576,9 +576,9 @@ void SyncBackendHostCore::SaveChanges() {
}
void SyncBackendHostCore::DoClearServerData(
- const SyncManager::ClearServerDataCallback& frontend_callback) {
+ const base::Closure& frontend_callback) {
DCHECK(thread_checker_.CalledOnValidThread());
- const SyncManager::ClearServerDataCallback callback =
+ const base::Closure callback =
base::Bind(&SyncBackendHostCore::ClearServerDataDone,
weak_ptr_factory_.GetWeakPtr(), frontend_callback);
sync_manager_->ClearServerData(callback);
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.h ('k') | components/sync/driver/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698