| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |