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 "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 return value; | 283 return value; |
284 } | 284 } |
285 | 285 |
286 DictionaryValue* BookmarkSpecificsToValue( | 286 DictionaryValue* BookmarkSpecificsToValue( |
287 const sync_pb::BookmarkSpecifics& proto) { | 287 const sync_pb::BookmarkSpecifics& proto) { |
288 DictionaryValue* value = new DictionaryValue(); | 288 DictionaryValue* value = new DictionaryValue(); |
289 SET_STR(url); | 289 SET_STR(url); |
290 SET_BYTES(favicon); | 290 SET_BYTES(favicon); |
291 SET_STR(title); | 291 SET_STR(title); |
292 SET_INT64(creation_time_us); | 292 SET_INT64(creation_time_us); |
| 293 SET_STR(icon_url); |
293 return value; | 294 return value; |
294 } | 295 } |
295 | 296 |
296 DictionaryValue* DeviceInfoSpecificsToValue( | 297 DictionaryValue* DeviceInfoSpecificsToValue( |
297 const sync_pb::DeviceInfoSpecifics& proto) { | 298 const sync_pb::DeviceInfoSpecifics& proto) { |
298 DictionaryValue* value = new DictionaryValue(); | 299 DictionaryValue* value = new DictionaryValue(); |
299 SET_STR(cache_guid); | 300 SET_STR(cache_guid); |
300 SET_STR(client_name); | 301 SET_STR(client_name); |
301 SET_ENUM(device_type, GetDeviceTypeString); | 302 SET_ENUM(device_type, GetDeviceTypeString); |
302 SET_STR(sync_user_agent); | 303 SET_STR(sync_user_agent); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 #undef SET_BYTES | 704 #undef SET_BYTES |
704 #undef SET_INT32 | 705 #undef SET_INT32 |
705 #undef SET_INT64 | 706 #undef SET_INT64 |
706 #undef SET_INT64_REP | 707 #undef SET_INT64_REP |
707 #undef SET_STR | 708 #undef SET_STR |
708 #undef SET_STR_REP | 709 #undef SET_STR_REP |
709 | 710 |
710 #undef SET_FIELD | 711 #undef SET_FIELD |
711 | 712 |
712 } // namespace syncer | 713 } // namespace syncer |
OLD | NEW |