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

Unified Diff: components/sync/model_impl/model_type_store_impl.h

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
Index: components/sync/model_impl/model_type_store_impl.h
diff --git a/components/sync/model_impl/model_type_store_impl.h b/components/sync/model_impl/model_type_store_impl.h
index 67ca71b1144116aa8e1eb0a902f6db74415a8618..f9b67336981790ef2a50238c84bbd9d648e7a746 100644
--- a/components/sync/model_impl/model_type_store_impl.h
+++ b/components/sync/model_impl/model_type_store_impl.h
@@ -46,6 +46,9 @@ class ModelTypeStoreImpl : public ModelTypeStore, public base::NonThreadSafe {
std::unique_ptr<WriteBatch> CreateWriteBatch() override;
void CommitWriteBatch(std::unique_ptr<WriteBatch> write_batch,
const CallbackWithResult& callback) override;
+
+ protected:
+ // ModelTypeStore implementation.
void WriteData(WriteBatch* write_batch,
const std::string& id,
const std::string& value) override;
« no previous file with comments | « components/sync/model/model_type_store.cc ('k') | components/sync/model_impl/model_type_store_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698