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

Unified Diff: components/sync/engine/model_type_configurer.cc

Issue 2533083002: [Sync] SyncEngine refactor part 1: interfaces. (Closed)
Patch Set: Rebase. Created 4 years 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/engine/model_type_configurer.h ('k') | components/sync/engine/sync_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/model_type_configurer.cc
diff --git a/components/sync/driver/backend_data_type_configurer.cc b/components/sync/engine/model_type_configurer.cc
similarity index 66%
rename from components/sync/driver/backend_data_type_configurer.cc
rename to components/sync/engine/model_type_configurer.cc
index b689755ee0e37a3a37e28a0b4fb5b939952308b4..914acc4d75e820a1e14adcc0ec2a5410cdd24f55 100644
--- a/components/sync/driver/backend_data_type_configurer.cc
+++ b/components/sync/engine/model_type_configurer.cc
@@ -2,12 +2,12 @@
// 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/engine/model_type_configurer.h"
namespace syncer {
// static
-ModelTypeSet BackendDataTypeConfigurer::GetDataTypesInState(
+ModelTypeSet ModelTypeConfigurer::GetDataTypesInState(
DataTypeConfigState state,
const DataTypeConfigStateMap& state_map) {
ModelTypeSet types;
@@ -20,10 +20,9 @@ ModelTypeSet BackendDataTypeConfigurer::GetDataTypesInState(
}
// static
-void BackendDataTypeConfigurer::SetDataTypesState(
- DataTypeConfigState state,
- ModelTypeSet types,
- DataTypeConfigStateMap* state_map) {
+void ModelTypeConfigurer::SetDataTypesState(DataTypeConfigState state,
+ ModelTypeSet types,
+ DataTypeConfigStateMap* state_map) {
for (ModelTypeSet::Iterator it = types.First(); it.Good(); it.Inc()) {
(*state_map)[it.Get()] = state;
}
« no previous file with comments | « components/sync/engine/model_type_configurer.h ('k') | components/sync/engine/sync_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698