| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 SET_STR_REP(email_address); | 414 SET_STR_REP(email_address); |
| 415 SET_STR(company_name); | 415 SET_STR(company_name); |
| 416 | 416 |
| 417 SET_STR(address_home_line1); | 417 SET_STR(address_home_line1); |
| 418 SET_STR(address_home_line2); | 418 SET_STR(address_home_line2); |
| 419 SET_STR(address_home_city); | 419 SET_STR(address_home_city); |
| 420 SET_STR(address_home_state); | 420 SET_STR(address_home_state); |
| 421 SET_STR(address_home_zip); | 421 SET_STR(address_home_zip); |
| 422 SET_STR(address_home_country); | 422 SET_STR(address_home_country); |
| 423 | 423 |
| 424 SET_STR(address_home_street_address); |
| 425 SET_STR(address_home_sorting_code); |
| 426 SET_STR(address_home_dependent_locality); |
| 427 |
| 424 SET_STR_REP(phone_home_whole_number); | 428 SET_STR_REP(phone_home_whole_number); |
| 425 return value; | 429 return value; |
| 426 } | 430 } |
| 427 | 431 |
| 428 base::DictionaryValue* MetaInfoToValue( | 432 base::DictionaryValue* MetaInfoToValue( |
| 429 const sync_pb::MetaInfo& proto) { | 433 const sync_pb::MetaInfo& proto) { |
| 430 base::DictionaryValue* value = new base::DictionaryValue(); | 434 base::DictionaryValue* value = new base::DictionaryValue(); |
| 431 SET_STR(key); | 435 SET_STR(key); |
| 432 SET_STR(value); | 436 SET_STR(value); |
| 433 return value; | 437 return value; |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 #undef SET_BYTES | 1042 #undef SET_BYTES |
| 1039 #undef SET_INT32 | 1043 #undef SET_INT32 |
| 1040 #undef SET_INT64 | 1044 #undef SET_INT64 |
| 1041 #undef SET_INT64_REP | 1045 #undef SET_INT64_REP |
| 1042 #undef SET_STR | 1046 #undef SET_STR |
| 1043 #undef SET_STR_REP | 1047 #undef SET_STR_REP |
| 1044 | 1048 |
| 1045 #undef SET_FIELD | 1049 #undef SET_FIELD |
| 1046 | 1050 |
| 1047 } // namespace syncer | 1051 } // namespace syncer |
| OLD | NEW |