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

Side by Side 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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 } 865 }
866 866
867 void SyncBackendHostImpl::RefreshTypesForTest(syncer::ModelTypeSet types) { 867 void SyncBackendHostImpl::RefreshTypesForTest(syncer::ModelTypeSet types) {
868 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 868 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
869 869
870 registrar_->sync_thread()->task_runner()->PostTask( 870 registrar_->sync_thread()->task_runner()->PostTask(
871 FROM_HERE, 871 FROM_HERE,
872 base::Bind(&SyncBackendHostCore::DoRefreshTypes, core_.get(), types)); 872 base::Bind(&SyncBackendHostCore::DoRefreshTypes, core_.get(), types));
873 } 873 }
874 874
875 void SyncBackendHostImpl::ClearServerData(
876 const syncer::SyncManager::ClearServerDataCallback& callback) {
877 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
878 registrar_->sync_thread()->task_runner()->PostTask(
879 FROM_HERE, base::Bind(&SyncBackendHostCore::DoClearServerData,
880 core_.get(), callback));
881 }
882
883 void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop(
884 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
885 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
886 frontend_callback.Run();
887 }
888
875 } // namespace browser_sync 889 } // namespace browser_sync
876 890
877 #undef SDVLOG 891 #undef SDVLOG
878 892
879 #undef SLOG 893 #undef SLOG
OLDNEW
« 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