| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 SET_STR_REP(phone_home_whole_number); | 264 SET_STR_REP(phone_home_whole_number); |
| 265 return value; | 265 return value; |
| 266 } | 266 } |
| 267 | 267 |
| 268 DictionaryValue* BookmarkSpecificsToValue( | 268 DictionaryValue* BookmarkSpecificsToValue( |
| 269 const sync_pb::BookmarkSpecifics& proto) { | 269 const sync_pb::BookmarkSpecifics& proto) { |
| 270 DictionaryValue* value = new DictionaryValue(); | 270 DictionaryValue* value = new DictionaryValue(); |
| 271 SET_STR(url); | 271 SET_STR(url); |
| 272 SET_BYTES(favicon); | 272 SET_BYTES(favicon); |
| 273 SET_STR(title); | 273 SET_STR(title); |
| 274 SET_INT64(creation_time); |
| 274 return value; | 275 return value; |
| 275 } | 276 } |
| 276 | 277 |
| 277 DictionaryValue* ExtensionSettingSpecificsToValue( | 278 DictionaryValue* ExtensionSettingSpecificsToValue( |
| 278 const sync_pb::ExtensionSettingSpecifics& proto) { | 279 const sync_pb::ExtensionSettingSpecifics& proto) { |
| 279 DictionaryValue* value = new DictionaryValue(); | 280 DictionaryValue* value = new DictionaryValue(); |
| 280 SET_STR(extension_id); | 281 SET_STR(extension_id); |
| 281 SET_STR(key); | 282 SET_STR(key); |
| 282 SET_STR(value); | 283 SET_STR(value); |
| 283 return value; | 284 return value; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 #undef SET_BYTES | 596 #undef SET_BYTES |
| 596 #undef SET_INT32 | 597 #undef SET_INT32 |
| 597 #undef SET_INT64 | 598 #undef SET_INT64 |
| 598 #undef SET_INT64_REP | 599 #undef SET_INT64_REP |
| 599 #undef SET_STR | 600 #undef SET_STR |
| 600 #undef SET_STR_REP | 601 #undef SET_STR_REP |
| 601 | 602 |
| 602 #undef SET_FIELD | 603 #undef SET_FIELD |
| 603 | 604 |
| 604 } // namespace syncer | 605 } // namespace syncer |
| OLD | NEW |