| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 ConfigureReason reason, | 182 ConfigureReason reason, |
| 183 ModelTypeSet to_download, | 183 ModelTypeSet to_download, |
| 184 ModelTypeSet to_purge, | 184 ModelTypeSet to_purge, |
| 185 ModelTypeSet to_journal, | 185 ModelTypeSet to_journal, |
| 186 ModelTypeSet to_unapply, | 186 ModelTypeSet to_unapply, |
| 187 const ModelSafeRoutingInfo& new_routing_info, | 187 const ModelSafeRoutingInfo& new_routing_info, |
| 188 const base::Closure& ready_task, | 188 const base::Closure& ready_task, |
| 189 const base::Closure& retry_task) { | 189 const base::Closure& retry_task) { |
| 190 DCHECK(thread_checker_.CalledOnValidThread()); | 190 DCHECK(thread_checker_.CalledOnValidThread()); |
| 191 DCHECK(!ready_task.is_null()); | 191 DCHECK(!ready_task.is_null()); |
| 192 DCHECK(!retry_task.is_null()); | |
| 193 DCHECK(initialized_); | 192 DCHECK(initialized_); |
| 194 | 193 |
| 195 DVLOG(1) << "Configuring -" | 194 DVLOG(1) << "Configuring -" |
| 196 << "\n\t" << "current types: " | 195 << "\n\t" << "current types: " |
| 197 << ModelTypeSetToString(GetRoutingInfoTypes(new_routing_info)) | 196 << ModelTypeSetToString(GetRoutingInfoTypes(new_routing_info)) |
| 198 << "\n\t" << "types to download: " | 197 << "\n\t" << "types to download: " |
| 199 << ModelTypeSetToString(to_download) | 198 << ModelTypeSetToString(to_download) |
| 200 << "\n\t" << "types to purge: " | 199 << "\n\t" << "types to purge: " |
| 201 << ModelTypeSetToString(to_purge) | 200 << ModelTypeSetToString(to_purge) |
| 202 << "\n\t" << "types to journal: " | 201 << "\n\t" << "types to journal: " |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver( | 1040 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver( |
| 1042 syncer::TypeDebugInfoObserver* observer) { | 1041 syncer::TypeDebugInfoObserver* observer) { |
| 1043 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer); | 1042 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer); |
| 1044 } | 1043 } |
| 1045 | 1044 |
| 1046 void SyncManagerImpl::RequestEmitDebugInfo() { | 1045 void SyncManagerImpl::RequestEmitDebugInfo() { |
| 1047 model_type_registry_->RequestEmitDebugInfo(); | 1046 model_type_registry_->RequestEmitDebugInfo(); |
| 1048 } | 1047 } |
| 1049 | 1048 |
| 1050 } // namespace syncer | 1049 } // namespace syncer |
| OLD | NEW |