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

Unified Diff: sync/internal_api/public/model_type_entity.h

Issue 1648813002: [Sync] Renaming client key to client tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: sync/internal_api/public/model_type_entity.h
diff --git a/sync/internal_api/public/model_type_entity.h b/sync/internal_api/public/model_type_entity.h
index cabbaebb8492e0872d8ab8865c90a674b93f13e9..68cb75713234e0d14a3dd000676504a5d3dc8809 100644
--- a/sync/internal_api/public/model_type_entity.h
+++ b/sync/internal_api/public/model_type_entity.h
@@ -37,8 +37,8 @@ class SYNC_EXPORT ModelTypeEntity {
~ModelTypeEntity();
- // Returns entity's client key.
- const std::string& client_key() const { return client_key_; }
+ // Returns entity's client tag.
+ const std::string& client_tag() const { return client_tag_; }
// Returns entity's metadata.
const sync_pb::EntityMetadata& metadata() const { return metadata_; }
@@ -115,7 +115,7 @@ class SYNC_EXPORT ModelTypeEntity {
friend class ModelTypeEntityTest;
// The constructor swaps the data from the passed metadata.
- ModelTypeEntity(const std::string& client_key,
+ ModelTypeEntity(const std::string& client_tag,
sync_pb::EntityMetadata* metadata);
// Increment sequence number in the metadata.
@@ -124,8 +124,8 @@ class SYNC_EXPORT ModelTypeEntity {
// Update hash string for EntitySpecifics in the metadata.
void UpdateSpecificsHash(const sync_pb::EntitySpecifics& specifics);
- // Client key. Should always be available.
- std::string client_key_;
+ // Client tag. Should always be available.
+ std::string client_tag_;
// Serializable Sync metadata.
sync_pb::EntityMetadata metadata_;
« no previous file with comments | « sync/internal_api/public/data_batch_impl_unittest.cc ('k') | sync/internal_api/public/shared_model_type_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698