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

Unified Diff: components/sync/core/simple_metadata_change_list.h

Issue 2394573002: [Sync] Rename DataTypeState to ModelTypeState. (Closed)
Patch Set: Rebase. 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/core/simple_metadata_change_list.h
diff --git a/components/sync/core/simple_metadata_change_list.h b/components/sync/core/simple_metadata_change_list.h
index 5a0d8c3671a3b819224c0cf3c0631e3cb7fd4b9f..e408b82e3ce4c209e1ff1d24abb923a84ca4e976 100644
--- a/components/sync/core/simple_metadata_change_list.h
+++ b/components/sync/core/simple_metadata_change_list.h
@@ -12,8 +12,8 @@
#include "components/sync/api/metadata_change_list.h"
#include "components/sync/api/model_type_store.h"
#include "components/sync/core/non_blocking_sync_common.h"
-#include "components/sync/protocol/data_type_state.pb.h"
#include "components/sync/protocol/entity_metadata.pb.h"
+#include "components/sync/protocol/model_type_state.pb.h"
namespace syncer {
@@ -29,9 +29,9 @@ class SimpleMetadataChangeList : public MetadataChangeList {
sync_pb::EntityMetadata metadata;
};
- struct DataTypeStateChange {
+ struct ModelTypeStateChange {
ChangeType type;
- sync_pb::DataTypeState state;
+ sync_pb::ModelTypeState state;
};
typedef std::map<std::string, MetadataChange> MetadataChanges;
@@ -39,16 +39,16 @@ class SimpleMetadataChangeList : public MetadataChangeList {
SimpleMetadataChangeList();
~SimpleMetadataChangeList() override;
- void UpdateDataTypeState(
- const sync_pb::DataTypeState& data_type_state) override;
- void ClearDataTypeState() override;
+ void UpdateModelTypeState(
+ const sync_pb::ModelTypeState& model_type_state) override;
+ void ClearModelTypeState() override;
void UpdateMetadata(const std::string& client_tag,
const sync_pb::EntityMetadata& metadata) override;
void ClearMetadata(const std::string& client_tag) override;
const MetadataChanges& GetMetadataChanges() const;
- bool HasDataTypeStateChange() const;
- const DataTypeStateChange& GetDataTypeStateChange() const;
+ bool HasModelTypeStateChange() const;
+ const ModelTypeStateChange& GetModelTypeStateChange() const;
// Moves all currently accumulated changes into the write batch, clear out
// local copies. Calling this multiple times will work, but should not be
@@ -58,7 +58,7 @@ class SimpleMetadataChangeList : public MetadataChangeList {
private:
MetadataChanges metadata_changes_;
- std::unique_ptr<DataTypeStateChange> state_change_;
+ std::unique_ptr<ModelTypeStateChange> state_change_;
};
} // namespace syncer
« no previous file with comments | « components/sync/core/shared_model_type_processor_unittest.cc ('k') | components/sync/core/simple_metadata_change_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698