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

Unified Diff: chrome/browser/sync/glue/sync_backend_host_impl.cc

Issue 1253743003: [Sync] Update SyncBackendHost to forward ClearServerData to SyncManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clearserverdatacommand
Patch Set: Remove unused callback variable Created 5 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/sync/glue/sync_backend_host_impl.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host_impl.cc b/chrome/browser/sync/glue/sync_backend_host_impl.cc
index 833a9d978897c31c7896f3cd212e32a75d3c608c..75ada092ee0a79a3b62d756af9650b76d256324e 100644
--- a/chrome/browser/sync/glue/sync_backend_host_impl.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_impl.cc
@@ -872,6 +872,20 @@ void SyncBackendHostImpl::RefreshTypesForTest(syncer::ModelTypeSet types) {
base::Bind(&SyncBackendHostCore::DoRefreshTypes, core_.get(), types));
}
+void SyncBackendHostImpl::ClearServerData(
+ const syncer::SyncManager::ClearServerDataCallback& callback) {
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
+ registrar_->sync_thread()->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&SyncBackendHostCore::DoClearServerData,
+ core_.get(), callback));
+}
+
+void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop(
+ const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
+ frontend_callback.Run();
+}
+
} // namespace browser_sync
#undef SDVLOG
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.h ('k') | chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698