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

Side by Side Diff: components/sync/model_impl/passthrough_metadata_change_list.cc

Issue 2794413002: [USS] Add SyncMetadataStore interface (Closed)
Patch Set: Created 3 years, 8 months 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698