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

Unified Diff: components/sync/core/processor_entity_tracker.cc

Issue 2222373003: [Sync] Adding storage key concept for ModelTypeServices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing redundant hash value. 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
Index: components/sync/core/processor_entity_tracker.cc
diff --git a/components/sync/core/processor_entity_tracker.cc b/components/sync/core/processor_entity_tracker.cc
index 41d3456b2d9c9a03f76a0b77a9c12a454f87ddce..13a584bdac5b577165d8270027e753ca43c0f427 100644
--- a/components/sync/core/processor_entity_tracker.cc
+++ b/components/sync/core/processor_entity_tracker.cc
@@ -26,7 +26,7 @@ void HashSpecifics(const sync_pb::EntitySpecifics& specifics,
} // namespace
std::unique_ptr<ProcessorEntityTracker> ProcessorEntityTracker::CreateNew(
- const std::string& client_tag,
+ const std::string& storage_key,
const std::string& client_tag_hash,
const std::string& id,
base::Time creation_time) {
@@ -41,20 +41,20 @@ std::unique_ptr<ProcessorEntityTracker> ProcessorEntityTracker::CreateNew(
metadata.set_creation_time(syncer::TimeToProtoTime(creation_time));
return std::unique_ptr<ProcessorEntityTracker>(
- new ProcessorEntityTracker(client_tag, &metadata));
+ new ProcessorEntityTracker(storage_key, &metadata));
}
std::unique_ptr<ProcessorEntityTracker>
-ProcessorEntityTracker::CreateFromMetadata(const std::string& client_tag,
+ProcessorEntityTracker::CreateFromMetadata(const std::string& storage_key,
sync_pb::EntityMetadata* metadata) {
return std::unique_ptr<ProcessorEntityTracker>(
- new ProcessorEntityTracker(client_tag, metadata));
+ new ProcessorEntityTracker(storage_key, metadata));
}
ProcessorEntityTracker::ProcessorEntityTracker(
- const std::string& client_tag,
+ const std::string& storage_key,
sync_pb::EntityMetadata* metadata)
- : client_tag_(client_tag),
+ : storage_key_(storage_key),
commit_requested_sequence_number_(metadata->acked_sequence_number()) {
DCHECK(metadata->has_client_tag_hash());
DCHECK(metadata->has_creation_time());
« no previous file with comments | « components/sync/core/processor_entity_tracker.h ('k') | components/sync/core/processor_entity_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698