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

Unified Diff: components/sync/driver/glue/sync_backend_host_impl.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
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.h ('k') | components/sync/engine/fake_sync_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/glue/sync_backend_host_impl.cc
diff --git a/components/sync/driver/glue/sync_backend_host_impl.cc b/components/sync/driver/glue/sync_backend_host_impl.cc
index 5556b14db9838a689cdd8045c5c4aac31fada5a9..51aeee91d593a17dc8c2d57e4d13342555b710b2 100644
--- a/components/sync/driver/glue/sync_backend_host_impl.cc
+++ b/components/sync/driver/glue/sync_backend_host_impl.cc
@@ -422,8 +422,7 @@ void SyncBackendHostImpl::RefreshTypesForTest(ModelTypeSet types) {
base::Bind(&SyncBackendHostCore::DoRefreshTypes, core_, types));
}
-void SyncBackendHostImpl::ClearServerData(
- const SyncManager::ClearServerDataCallback& callback) {
+void SyncBackendHostImpl::ClearServerData(const base::Closure& callback) {
DCHECK(thread_checker_.CalledOnValidThread());
sync_task_runner_->PostTask(
FROM_HERE,
@@ -440,7 +439,7 @@ void SyncBackendHostImpl::OnCookieJarChanged(bool account_mismatch,
}
void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop(
- const SyncManager::ClearServerDataCallback& frontend_callback) {
+ const base::Closure& frontend_callback) {
DCHECK(thread_checker_.CalledOnValidThread());
frontend_callback.Run();
}
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.h ('k') | components/sync/engine/fake_sync_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698