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

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 102193004: Checkpointing some Sync Attachment work. Added SyncAttachment and SyncAttachmentId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing SYNC_EXPORT_PRIVATE modifier (was cause of link error on trybots). Created 6 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_value_conversions.h" 7 #include "sync/protocol/proto_value_conversions.h"
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 } 1017 }
1018 1018
1019 base::DictionaryValue* ClientConfigParamsToValue( 1019 base::DictionaryValue* ClientConfigParamsToValue(
1020 const sync_pb::ClientConfigParams& proto) { 1020 const sync_pb::ClientConfigParams& proto) {
1021 base::DictionaryValue* value = new base::DictionaryValue(); 1021 base::DictionaryValue* value = new base::DictionaryValue();
1022 SET_INT32_REP(enabled_type_ids); 1022 SET_INT32_REP(enabled_type_ids);
1023 SET_BOOL(tabs_datatype_enabled); 1023 SET_BOOL(tabs_datatype_enabled);
1024 return value; 1024 return value;
1025 } 1025 }
1026 1026
1027 base::DictionaryValue* SyncAttachmentIdToValue(
1028 const sync_pb::SyncAttachmentId& proto) {
1029 base::DictionaryValue* value = new base::DictionaryValue();
1030 SET_STR(unique_id);
1031 return value;
1032 }
1033
1027 #undef SET 1034 #undef SET
1028 #undef SET_REP 1035 #undef SET_REP
1029 1036
1030 #undef SET_BOOL 1037 #undef SET_BOOL
1031 #undef SET_BYTES 1038 #undef SET_BYTES
1032 #undef SET_INT32 1039 #undef SET_INT32
1033 #undef SET_INT64 1040 #undef SET_INT64
1034 #undef SET_INT64_REP 1041 #undef SET_INT64_REP
1035 #undef SET_STR 1042 #undef SET_STR
1036 #undef SET_STR_REP 1043 #undef SET_STR_REP
1037 1044
1038 #undef SET_FIELD 1045 #undef SET_FIELD
1039 1046
1040 } // namespace syncer 1047 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698