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

Unified Diff: components/sync/driver/backend_data_type_configurer.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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/backend_data_type_configurer.h ('k') | components/sync/driver/backend_migrator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/backend_data_type_configurer.cc
diff --git a/components/sync_driver/backend_data_type_configurer.cc b/components/sync/driver/backend_data_type_configurer.cc
similarity index 66%
rename from components/sync_driver/backend_data_type_configurer.cc
rename to components/sync/driver/backend_data_type_configurer.cc
index 52b3f9bedc949dabe305df1bfc029e2afbe2333d..e6d163765e754628b5b9b3689e7f2cd3b6744b70 100644
--- a/components/sync_driver/backend_data_type_configurer.cc
+++ b/components/sync/driver/backend_data_type_configurer.cc
@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
-#include "components/sync_driver/backend_data_type_configurer.h"
+#include "components/sync/driver/backend_data_type_configurer.h"
namespace sync_driver {
// static
-syncer::ModelTypeSet
-BackendDataTypeConfigurer::GetDataTypesInState(
- DataTypeConfigState state, const DataTypeConfigStateMap& state_map) {
+syncer::ModelTypeSet BackendDataTypeConfigurer::GetDataTypesInState(
+ DataTypeConfigState state,
+ const DataTypeConfigStateMap& state_map) {
syncer::ModelTypeSet types;
for (DataTypeConfigStateMap::const_iterator type_it = state_map.begin();
- type_it != state_map.end(); ++type_it) {
+ type_it != state_map.end(); ++type_it) {
if (type_it->second == state)
types.Put(type_it->first);
}
@@ -22,7 +21,8 @@ BackendDataTypeConfigurer::GetDataTypesInState(
// static
void BackendDataTypeConfigurer::SetDataTypesState(
- DataTypeConfigState state, syncer::ModelTypeSet types,
+ DataTypeConfigState state,
+ syncer::ModelTypeSet types,
DataTypeConfigStateMap* state_map) {
for (syncer::ModelTypeSet::Iterator it = types.First(); it.Good(); it.Inc()) {
(*state_map)[it.Get()] = state;
« 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