| Index: components/sync/model_impl/model_type_store_impl.cc
|
| diff --git a/components/sync/model_impl/model_type_store_impl.cc b/components/sync/model_impl/model_type_store_impl.cc
|
| index 74bff7cbe8bcc6d3816c77e8a9792287a4945c28..26da6d5b9ab5f8b16cfb7cc8f8e3d5fdc45d4ef7 100644
|
| --- a/components/sync/model_impl/model_type_store_impl.cc
|
| +++ b/components/sync/model_impl/model_type_store_impl.cc
|
| @@ -270,7 +270,7 @@ void ModelTypeStoreImpl::ReadAllMetadataDone(
|
| std::unique_ptr<ModelTypeStore::WriteBatch>
|
| ModelTypeStoreImpl::CreateWriteBatch() {
|
| DCHECK(CalledOnValidThread());
|
| - return base::MakeUnique<WriteBatchImpl>();
|
| + return base::MakeUnique<WriteBatchImpl>(this);
|
| }
|
|
|
| void ModelTypeStoreImpl::CommitWriteBatch(
|
| @@ -333,7 +333,8 @@ void ModelTypeStoreImpl::DeleteGlobalMetadata(WriteBatch* write_batch) {
|
| GetLeveldbWriteBatch(write_batch)->Delete(kGlobalMetadataKey);
|
| }
|
|
|
| -ModelTypeStoreImpl::WriteBatchImpl::WriteBatchImpl() {
|
| +ModelTypeStoreImpl::WriteBatchImpl::WriteBatchImpl(ModelTypeStore* store)
|
| + : WriteBatch(store) {
|
| leveldb_write_batch_ = base::MakeUnique<leveldb::WriteBatch>();
|
| }
|
|
|
|
|