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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl.cc

Issue 2394573002: [Sync] Rename DataTypeState to ModelTypeState. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 "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
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
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
OLDNEW
« no previous file with comments | « components/sync/device_info/device_info_service_unittest.cc ('k') | components/sync/engine_impl/model_type_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698