| 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 <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 SET_INT32(num_reflected_updates_downloaded); | 1049 SET_INT32(num_reflected_updates_downloaded); |
| 1050 SET(caller_info, GetUpdatesCallerInfoToValue); | 1050 SET(caller_info, GetUpdatesCallerInfoToValue); |
| 1051 return value; | 1051 return value; |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 scoped_ptr<base::DictionaryValue> ClientConfigParamsToValue( | 1054 scoped_ptr<base::DictionaryValue> ClientConfigParamsToValue( |
| 1055 const sync_pb::ClientConfigParams& proto) { | 1055 const sync_pb::ClientConfigParams& proto) { |
| 1056 scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue()); | 1056 scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue()); |
| 1057 SET_INT32_REP(enabled_type_ids); | 1057 SET_INT32_REP(enabled_type_ids); |
| 1058 SET_BOOL(tabs_datatype_enabled); | 1058 SET_BOOL(tabs_datatype_enabled); |
| 1059 SET_BOOL(cookie_jar_mismatch); |
| 1059 return value; | 1060 return value; |
| 1060 } | 1061 } |
| 1061 | 1062 |
| 1062 scoped_ptr<base::DictionaryValue> AttachmentIdProtoToValue( | 1063 scoped_ptr<base::DictionaryValue> AttachmentIdProtoToValue( |
| 1063 const sync_pb::AttachmentIdProto& proto) { | 1064 const sync_pb::AttachmentIdProto& proto) { |
| 1064 scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue()); | 1065 scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue()); |
| 1065 SET_STR(unique_id); | 1066 SET_STR(unique_id); |
| 1066 return value; | 1067 return value; |
| 1067 } | 1068 } |
| 1068 | 1069 |
| 1069 #undef SET_TYPE | 1070 #undef SET_TYPE |
| 1070 #undef SET | 1071 #undef SET |
| 1071 #undef SET_REP | 1072 #undef SET_REP |
| 1072 | 1073 |
| 1073 #undef SET_BOOL | 1074 #undef SET_BOOL |
| 1074 #undef SET_BYTES | 1075 #undef SET_BYTES |
| 1075 #undef SET_INT32 | 1076 #undef SET_INT32 |
| 1076 #undef SET_INT64 | 1077 #undef SET_INT64 |
| 1077 #undef SET_INT64_REP | 1078 #undef SET_INT64_REP |
| 1078 #undef SET_STR | 1079 #undef SET_STR |
| 1079 #undef SET_STR_REP | 1080 #undef SET_STR_REP |
| 1080 | 1081 |
| 1081 #undef SET_FIELD | 1082 #undef SET_FIELD |
| 1082 | 1083 |
| 1083 } // namespace syncer | 1084 } // namespace syncer |
| OLD | NEW |