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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 SET_STR(username_element); | 236 SET_STR(username_element); |
237 SET_STR(username_value); | 237 SET_STR(username_value); |
238 SET_STR(password_element); | 238 SET_STR(password_element); |
239 value->SetString("password_value", "<redacted>"); | 239 value->SetString("password_value", "<redacted>"); |
240 SET_BOOL(ssl_valid); | 240 SET_BOOL(ssl_valid); |
241 SET_BOOL(preferred); | 241 SET_BOOL(preferred); |
242 SET_INT64(date_created); | 242 SET_INT64(date_created); |
243 SET_BOOL(blacklisted); | 243 SET_BOOL(blacklisted); |
244 SET_INT32(type); | 244 SET_INT32(type); |
245 SET_INT32(times_used); | 245 SET_INT32(times_used); |
| 246 SET_STR(display_name); |
| 247 SET_STR(avatar_url); |
| 248 SET_STR(federation_url); |
246 return value; | 249 return value; |
247 } | 250 } |
248 | 251 |
249 base::DictionaryValue* GlobalIdDirectiveToValue( | 252 base::DictionaryValue* GlobalIdDirectiveToValue( |
250 const sync_pb::GlobalIdDirective& proto) { | 253 const sync_pb::GlobalIdDirective& proto) { |
251 base::DictionaryValue* value = new base::DictionaryValue(); | 254 base::DictionaryValue* value = new base::DictionaryValue(); |
252 SET_INT64_REP(global_id); | 255 SET_INT64_REP(global_id); |
253 SET_INT64(start_time_usec); | 256 SET_INT64(start_time_usec); |
254 SET_INT64(end_time_usec); | 257 SET_INT64(end_time_usec); |
255 return value; | 258 return value; |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 #undef SET_BYTES | 1125 #undef SET_BYTES |
1123 #undef SET_INT32 | 1126 #undef SET_INT32 |
1124 #undef SET_INT64 | 1127 #undef SET_INT64 |
1125 #undef SET_INT64_REP | 1128 #undef SET_INT64_REP |
1126 #undef SET_STR | 1129 #undef SET_STR |
1127 #undef SET_STR_REP | 1130 #undef SET_STR_REP |
1128 | 1131 |
1129 #undef SET_FIELD | 1132 #undef SET_FIELD |
1130 | 1133 |
1131 } // namespace syncer | 1134 } // namespace syncer |
OLD | NEW |