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

Unified Diff: components/sync/core/data_batch_impl.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
« no previous file with comments | « components/sync/core/data_batch_impl.h ('k') | components/sync/core/data_batch_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/core/data_batch_impl.cc
diff --git a/components/sync/core/data_batch_impl.cc b/components/sync/core/data_batch_impl.cc
index e67f316215bdfcbbb6a9bbabf6b1da562e6c3ffe..3eb9e8b4357298b7d794df5f86b322cf0c8644a7 100644
--- a/components/sync/core/data_batch_impl.cc
+++ b/components/sync/core/data_batch_impl.cc
@@ -10,18 +10,18 @@ DataBatchImpl::DataBatchImpl() {}
DataBatchImpl::~DataBatchImpl() {}
-void DataBatchImpl::Put(const std::string& client_tag,
+void DataBatchImpl::Put(const std::string& storage_key,
std::unique_ptr<EntityData> specifics) {
- tag_data_pairs_.push_back(TagAndData(client_tag, std::move(specifics)));
+ key_data_pairs_.push_back(KeyAndData(storage_key, std::move(specifics)));
}
bool DataBatchImpl::HasNext() const {
- return tag_data_pairs_.size() > read_index_;
+ return key_data_pairs_.size() > read_index_;
}
-TagAndData DataBatchImpl::Next() {
+KeyAndData DataBatchImpl::Next() {
DCHECK(HasNext());
- return std::move(tag_data_pairs_[read_index_++]);
+ return std::move(key_data_pairs_[read_index_++]);
}
} // namespace syncer_v2
« no previous file with comments | « components/sync/core/data_batch_impl.h ('k') | components/sync/core/data_batch_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698