| 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |