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

Side by Side Diff: components/sync_driver/non_blocking_data_type_manager.cc

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/non_blocking_data_type_manager.h" 5 #include "components/sync_driver/non_blocking_data_type_manager.h"
6 6
7 #include "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "components/sync_driver/non_blocking_data_type_controller.h" 8 #include "components/sync_driver/non_blocking_data_type_controller.h"
9 #include "sync/engine/model_type_sync_proxy_impl.h" 9 #include "sync/engine/model_type_sync_proxy_impl.h"
10 10
11 namespace browser_sync { 11 namespace sync_driver {
12 12
13 NonBlockingDataTypeManager::NonBlockingDataTypeManager() 13 NonBlockingDataTypeManager::NonBlockingDataTypeManager()
14 : non_blocking_data_type_controllers_deleter_( 14 : non_blocking_data_type_controllers_deleter_(
15 &non_blocking_data_type_controllers_) {} 15 &non_blocking_data_type_controllers_) {}
16 16
17 NonBlockingDataTypeManager::~NonBlockingDataTypeManager() {} 17 NonBlockingDataTypeManager::~NonBlockingDataTypeManager() {}
18 18
19 void NonBlockingDataTypeManager::RegisterType( 19 void NonBlockingDataTypeManager::RegisterType(
20 syncer::ModelType type, 20 syncer::ModelType type,
21 bool enabled) { 21 bool enabled) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 syncer::ModelTypeSet NonBlockingDataTypeManager::GetRegisteredTypes() const { 68 syncer::ModelTypeSet NonBlockingDataTypeManager::GetRegisteredTypes() const {
69 syncer::ModelTypeSet result; 69 syncer::ModelTypeSet result;
70 for (NonBlockingDataTypeControllerMap::const_iterator it = 70 for (NonBlockingDataTypeControllerMap::const_iterator it =
71 non_blocking_data_type_controllers_.begin(); 71 non_blocking_data_type_controllers_.begin();
72 it != non_blocking_data_type_controllers_.end(); ++it) { 72 it != non_blocking_data_type_controllers_.end(); ++it) {
73 result.Put(it->first); 73 result.Put(it->first);
74 } 74 }
75 return result; 75 return result;
76 } 76 }
77 77
78 } // namespace browser_sync 78 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/non_blocking_data_type_manager.h ('k') | components/sync_driver/non_ui_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698