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

Unified Diff: components/sync/model/model_type_store.cc

Issue 2489683002: [Sync] Make all ModelTypeStore write methods go through WriteBatch. (Closed)
Patch Set: Address comment. Created 4 years, 1 month 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/model/model_type_store.h ('k') | components/sync/model_impl/model_type_store_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/model_type_store.cc
diff --git a/components/sync/model/model_type_store.cc b/components/sync/model/model_type_store.cc
index 2cd151de52511693ff612c76ee9a4d01d8209eb7..fc8cb809bf8ef5707f66ee440f7633d0b82af3f2 100644
--- a/components/sync/model/model_type_store.cc
+++ b/components/sync/model/model_type_store.cc
@@ -38,6 +38,15 @@ ModelTypeStore::WriteBatch::WriteBatch(ModelTypeStore* store) : store_(store) {}
ModelTypeStore::WriteBatch::~WriteBatch() {}
+void ModelTypeStore::WriteBatch::WriteData(const std::string& id,
+ const std::string& value) {
+ store_->WriteData(this, id, value);
+}
+
+void ModelTypeStore::WriteBatch::DeleteData(const std::string& id) {
+ store_->DeleteData(this, id);
+}
+
MetadataChangeList* ModelTypeStore::WriteBatch::GetMetadataChangeList() {
if (!metadata_change_list_) {
metadata_change_list_ =
« no previous file with comments | « components/sync/model/model_type_store.h ('k') | components/sync/model_impl/model_type_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698