OLD | NEW |
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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 } | 1046 } |
1047 | 1047 |
1048 base::DictionaryValue* ClientConfigParamsToValue( | 1048 base::DictionaryValue* ClientConfigParamsToValue( |
1049 const sync_pb::ClientConfigParams& proto) { | 1049 const sync_pb::ClientConfigParams& proto) { |
1050 base::DictionaryValue* value = new base::DictionaryValue(); | 1050 base::DictionaryValue* value = new base::DictionaryValue(); |
1051 SET_INT32_REP(enabled_type_ids); | 1051 SET_INT32_REP(enabled_type_ids); |
1052 SET_BOOL(tabs_datatype_enabled); | 1052 SET_BOOL(tabs_datatype_enabled); |
1053 return value; | 1053 return value; |
1054 } | 1054 } |
1055 | 1055 |
| 1056 base::DictionaryValue* AttachmentIdProtoToValue( |
| 1057 const sync_pb::AttachmentIdProto& proto) { |
| 1058 base::DictionaryValue* value = new base::DictionaryValue(); |
| 1059 SET_STR(unique_id); |
| 1060 return value; |
| 1061 } |
| 1062 |
1056 #undef SET | 1063 #undef SET |
1057 #undef SET_REP | 1064 #undef SET_REP |
1058 | 1065 |
1059 #undef SET_BOOL | 1066 #undef SET_BOOL |
1060 #undef SET_BYTES | 1067 #undef SET_BYTES |
1061 #undef SET_INT32 | 1068 #undef SET_INT32 |
1062 #undef SET_INT64 | 1069 #undef SET_INT64 |
1063 #undef SET_INT64_REP | 1070 #undef SET_INT64_REP |
1064 #undef SET_STR | 1071 #undef SET_STR |
1065 #undef SET_STR_REP | 1072 #undef SET_STR_REP |
1066 | 1073 |
1067 #undef SET_FIELD | 1074 #undef SET_FIELD |
1068 | 1075 |
1069 } // namespace syncer | 1076 } // namespace syncer |
OLD | NEW |