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

Unified Diff: components/sync_driver/non_blocking_data_type_manager.cc

Issue 1315063008: Sync: Remove NonBlockingDataTypeManager and any ProfileSyncService code related to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync_driver/non_blocking_data_type_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/non_blocking_data_type_manager.cc
diff --git a/components/sync_driver/non_blocking_data_type_manager.cc b/components/sync_driver/non_blocking_data_type_manager.cc
deleted file mode 100644
index ac21b3de1927e3c52bd3974d763f5333bec10631..0000000000000000000000000000000000000000
--- a/components/sync_driver/non_blocking_data_type_manager.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/sync_driver/non_blocking_data_type_manager.h"
-
-#include "base/sequenced_task_runner.h"
-#include "components/sync_driver/non_blocking_data_type_controller.h"
-#include "sync/engine/model_type_processor_impl.h"
-
-namespace sync_driver_v2 {
-
-NonBlockingDataTypeManager::NonBlockingDataTypeManager() {
-}
-
-NonBlockingDataTypeManager::~NonBlockingDataTypeManager() {
-}
-
-void NonBlockingDataTypeManager::RegisterType(
- syncer::ModelType type,
- bool enabled) {
- DCHECK_EQ(0U, non_blocking_data_type_controllers_.count(type))
- << "Duplicate registration of type " << ModelTypeToString(type);
-
- non_blocking_data_type_controllers_.insert(
- type, make_scoped_ptr(new NonBlockingDataTypeController(type, enabled)));
-}
-
-void NonBlockingDataTypeManager::InitializeType(
- syncer::ModelType type,
- const scoped_refptr<base::SequencedTaskRunner>& task_runner,
- const base::WeakPtr<syncer_v2::ModelTypeProcessorImpl>& type_processor) {
- NonBlockingDataTypeControllerMap::const_iterator it =
- non_blocking_data_type_controllers_.find(type);
- DCHECK(it != non_blocking_data_type_controllers_.end());
- it->second->InitializeType(task_runner, type_processor);
-}
-
-void NonBlockingDataTypeManager::ConnectSyncBackend(
- scoped_ptr<syncer_v2::SyncContextProxy> proxy) {
- for (NonBlockingDataTypeControllerMap::const_iterator it =
- non_blocking_data_type_controllers_.begin();
- it != non_blocking_data_type_controllers_.end(); ++it) {
- it->second->InitializeSyncContext(proxy->Clone());
- }
-}
-
-void NonBlockingDataTypeManager::DisconnectSyncBackend() {
- for (NonBlockingDataTypeControllerMap::const_iterator it =
- non_blocking_data_type_controllers_.begin();
- it != non_blocking_data_type_controllers_.end(); ++it) {
- it->second->ClearSyncContext();
- }
-}
-
-void NonBlockingDataTypeManager::SetPreferredTypes(
- syncer::ModelTypeSet preferred_types) {
- for (NonBlockingDataTypeControllerMap::const_iterator it =
- non_blocking_data_type_controllers_.begin();
- it != non_blocking_data_type_controllers_.end(); ++it) {
- it->second->SetIsPreferred(preferred_types.Has(it->first));
- }
-}
-
-syncer::ModelTypeSet NonBlockingDataTypeManager::GetRegisteredTypes() const {
- syncer::ModelTypeSet result;
- for (NonBlockingDataTypeControllerMap::const_iterator it =
- non_blocking_data_type_controllers_.begin();
- it != non_blocking_data_type_controllers_.end(); ++it) {
- result.Put(it->first);
- }
- return result;
-}
-
-} // namespace sync_driver_v2
« no previous file with comments | « components/sync_driver/non_blocking_data_type_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698