OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/sync/model_impl/passthrough_metadata_change_list.h" | 5 #include "components/sync/model_impl/passthrough_metadata_change_list.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "components/sync/protocol/entity_metadata.pb.h" | 8 #include "components/sync/protocol/entity_metadata.pb.h" |
9 #include "components/sync/protocol/model_type_state.pb.h" | 9 #include "components/sync/protocol/model_type_state.pb.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 const std::string& storage_key, | 31 const std::string& storage_key, |
32 const sync_pb::EntityMetadata& metadata) { | 32 const sync_pb::EntityMetadata& metadata) { |
33 store_->WriteMetadata(batch_, storage_key, metadata.SerializeAsString()); | 33 store_->WriteMetadata(batch_, storage_key, metadata.SerializeAsString()); |
34 } | 34 } |
35 | 35 |
36 void PassthroughMetadataChangeList::ClearMetadata( | 36 void PassthroughMetadataChangeList::ClearMetadata( |
37 const std::string& storage_key) { | 37 const std::string& storage_key) { |
38 store_->DeleteMetadata(batch_, storage_key); | 38 store_->DeleteMetadata(batch_, storage_key); |
39 } | 39 } |
40 | 40 |
| 41 base::Optional<ModelError> PassthroughMetadataChangeList::TakeError() { |
| 42 NOTREACHED(); |
| 43 return {}; |
| 44 } |
| 45 |
41 } // namespace syncer | 46 } // namespace syncer |
OLD | NEW |