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

Side by Side Diff: components/sync/driver/backend_data_type_configurer.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 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/backend_data_type_configurer.h" 5 #include "components/sync/driver/backend_data_type_configurer.h"
6 6
7 namespace syncer { 7 namespace sync_driver {
8 8
9 // static 9 // static
10 ModelTypeSet BackendDataTypeConfigurer::GetDataTypesInState( 10 syncer::ModelTypeSet BackendDataTypeConfigurer::GetDataTypesInState(
11 DataTypeConfigState state, 11 DataTypeConfigState state,
12 const DataTypeConfigStateMap& state_map) { 12 const DataTypeConfigStateMap& state_map) {
13 ModelTypeSet types; 13 syncer::ModelTypeSet types;
14 for (DataTypeConfigStateMap::const_iterator type_it = state_map.begin(); 14 for (DataTypeConfigStateMap::const_iterator type_it = state_map.begin();
15 type_it != state_map.end(); ++type_it) { 15 type_it != state_map.end(); ++type_it) {
16 if (type_it->second == state) 16 if (type_it->second == state)
17 types.Put(type_it->first); 17 types.Put(type_it->first);
18 } 18 }
19 return types; 19 return types;
20 } 20 }
21 21
22 // static 22 // static
23 void BackendDataTypeConfigurer::SetDataTypesState( 23 void BackendDataTypeConfigurer::SetDataTypesState(
24 DataTypeConfigState state, 24 DataTypeConfigState state,
25 ModelTypeSet types, 25 syncer::ModelTypeSet types,
26 DataTypeConfigStateMap* state_map) { 26 DataTypeConfigStateMap* state_map) {
27 for (ModelTypeSet::Iterator it = types.First(); it.Good(); it.Inc()) { 27 for (syncer::ModelTypeSet::Iterator it = types.First(); it.Good(); it.Inc()) {
28 (*state_map)[it.Get()] = state; 28 (*state_map)[it.Get()] = state;
29 } 29 }
30 } 30 }
31 31
32 } // namespace syncer 32 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/backend_data_type_configurer.h ('k') | components/sync/driver/backend_migrator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698