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

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

Issue 2473553003: [Sync] Improve MetadataChangeList usage for types using ModelTypeStore. (Closed)
Patch Set: Fix comments + protected constructor. 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/fake_model_type_sync_bridge.cc ('k') | components/sync/model/model_type_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/mock_model_type_store.cc
diff --git a/components/sync/model/mock_model_type_store.cc b/components/sync/model/mock_model_type_store.cc
index 685ee079bee81672af82f78cef8a0c514baf25d2..ac2a9d272590204e83c5ea225f98337ced47b191 100644
--- a/components/sync/model/mock_model_type_store.cc
+++ b/components/sync/model/mock_model_type_store.cc
@@ -54,7 +54,7 @@ void MockModelTypeStore::ReadAllMetadata(const ReadMetadataCallback& callback) {
std::unique_ptr<MockModelTypeStore::WriteBatch>
MockModelTypeStore::CreateWriteBatch() {
- return base::WrapUnique(new MockModelTypeStore::WriteBatch());
+ return base::WrapUnique(new MockModelTypeStore::WriteBatch(this));
}
void MockModelTypeStore::CommitWriteBatch(
« no previous file with comments | « components/sync/model/fake_model_type_sync_bridge.cc ('k') | components/sync/model/model_type_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698