| OLD | NEW |
| 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 "components/sync/driver/glue/sync_backend_host_impl.h" | 5 #include "components/sync/driver/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 } | 405 } |
| 406 | 406 |
| 407 void SyncBackendHostImpl::DeactivateDirectoryDataType(ModelType type) { | 407 void SyncBackendHostImpl::DeactivateDirectoryDataType(ModelType type) { |
| 408 registrar_->DeactivateDataType(type); | 408 registrar_->DeactivateDataType(type); |
| 409 } | 409 } |
| 410 | 410 |
| 411 void SyncBackendHostImpl::ActivateNonBlockingDataType( | 411 void SyncBackendHostImpl::ActivateNonBlockingDataType( |
| 412 ModelType type, | 412 ModelType type, |
| 413 std::unique_ptr<ActivationContext> activation_context) { | 413 std::unique_ptr<ActivationContext> activation_context) { |
| 414 registrar_->RegisterNonBlockingType(type); | 414 registrar_->RegisterNonBlockingType(type); |
| 415 if (activation_context->data_type_state.initial_sync_done()) | 415 if (activation_context->model_type_state.initial_sync_done()) |
| 416 registrar_->AddRestoredNonBlockingType(type); | 416 registrar_->AddRestoredNonBlockingType(type); |
| 417 model_type_connector_->ConnectType(type, std::move(activation_context)); | 417 model_type_connector_->ConnectType(type, std::move(activation_context)); |
| 418 } | 418 } |
| 419 | 419 |
| 420 void SyncBackendHostImpl::DeactivateNonBlockingDataType(ModelType type) { | 420 void SyncBackendHostImpl::DeactivateNonBlockingDataType(ModelType type) { |
| 421 model_type_connector_->DisconnectType(type); | 421 model_type_connector_->DisconnectType(type); |
| 422 } | 422 } |
| 423 | 423 |
| 424 UserShare* SyncBackendHostImpl::GetUserShare() const { | 424 UserShare* SyncBackendHostImpl::GetUserShare() const { |
| 425 return core_->sync_manager()->GetUserShare(); | 425 return core_->sync_manager()->GetUserShare(); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 const SyncManager::ClearServerDataCallback& frontend_callback) { | 816 const SyncManager::ClearServerDataCallback& frontend_callback) { |
| 817 DCHECK(ui_thread_->BelongsToCurrentThread()); | 817 DCHECK(ui_thread_->BelongsToCurrentThread()); |
| 818 frontend_callback.Run(); | 818 frontend_callback.Run(); |
| 819 } | 819 } |
| 820 | 820 |
| 821 } // namespace syncer | 821 } // namespace syncer |
| 822 | 822 |
| 823 #undef SDVLOG | 823 #undef SDVLOG |
| 824 | 824 |
| 825 #undef SLOG | 825 #undef SLOG |
| OLD | NEW |