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

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

Issue 2563423005: [Sync] Move ConfigureDataTypes logic into DataTypeManagerImpl. (Closed)
Patch Set: Address comments. Created 3 years, 11 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/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/engine/model_type_configurer.cc b/components/sync/engine/model_type_configurer.cc
index 914acc4d75e820a1e14adcc0ec2a5410cdd24f55..f44117b8b576d98cdedeb90569532cf0a4cf06ab 100644
--- a/components/sync/engine/model_type_configurer.cc
+++ b/components/sync/engine/model_type_configurer.cc
@@ -6,26 +6,14 @@
namespace syncer {
-// static
-ModelTypeSet ModelTypeConfigurer::GetDataTypesInState(
- DataTypeConfigState state,
- const DataTypeConfigStateMap& state_map) {
- ModelTypeSet types;
- for (DataTypeConfigStateMap::const_iterator type_it = state_map.begin();
- type_it != state_map.end(); ++type_it) {
- if (type_it->second == state)
- types.Put(type_it->first);
- }
- return types;
-}
+ModelTypeConfigurer::ConfigureParams::ConfigureParams() = default;
+ModelTypeConfigurer::ConfigureParams::ConfigureParams(ConfigureParams&& other) =
+ default;
+ModelTypeConfigurer::ConfigureParams::~ConfigureParams() = default;
+ModelTypeConfigurer::ConfigureParams& ModelTypeConfigurer::ConfigureParams::
+operator=(ConfigureParams&& other) = default;
-// static
-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;
- }
-}
+ModelTypeConfigurer::ModelTypeConfigurer() = default;
+ModelTypeConfigurer::~ModelTypeConfigurer() = default;
} // namespace syncer
« 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