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

Side by Side Diff: sync/internal_api/sync_manager_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
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/internal_api/sync_manager_impl.h" 5 #include "sync/internal_api/sync_manager_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 1032
1033 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver( 1033 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver(
1034 syncer::TypeDebugInfoObserver* observer) { 1034 syncer::TypeDebugInfoObserver* observer) {
1035 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer); 1035 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer);
1036 } 1036 }
1037 1037
1038 void SyncManagerImpl::RequestEmitDebugInfo() { 1038 void SyncManagerImpl::RequestEmitDebugInfo() {
1039 model_type_registry_->RequestEmitDebugInfo(); 1039 model_type_registry_->RequestEmitDebugInfo();
1040 } 1040 }
1041 1041
1042 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) {
1043 DCHECK(thread_checker_.CalledOnValidThread());
1044 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time());
1045 ClearParams params(callback);
1046 scheduler_->ScheduleClearServerData(params);
1047 }
1048
1042 } // namespace syncer 1049 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698