| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 SET_STR(address_home_line1); | 431 SET_STR(address_home_line1); |
| 432 SET_STR(address_home_line2); | 432 SET_STR(address_home_line2); |
| 433 SET_STR(address_home_city); | 433 SET_STR(address_home_city); |
| 434 SET_STR(address_home_state); | 434 SET_STR(address_home_state); |
| 435 SET_STR(address_home_zip); | 435 SET_STR(address_home_zip); |
| 436 SET_STR(address_home_country); | 436 SET_STR(address_home_country); |
| 437 | 437 |
| 438 SET_STR(address_home_street_address); | 438 SET_STR(address_home_street_address); |
| 439 SET_STR(address_home_sorting_code); | 439 SET_STR(address_home_sorting_code); |
| 440 SET_STR(address_home_dependent_locality); | 440 SET_STR(address_home_dependent_locality); |
| 441 SET_STR(address_home_language_code); |
| 441 | 442 |
| 442 SET_STR_REP(phone_home_whole_number); | 443 SET_STR_REP(phone_home_whole_number); |
| 443 return value; | 444 return value; |
| 444 } | 445 } |
| 445 | 446 |
| 446 base::DictionaryValue* MetaInfoToValue( | 447 base::DictionaryValue* MetaInfoToValue( |
| 447 const sync_pb::MetaInfo& proto) { | 448 const sync_pb::MetaInfo& proto) { |
| 448 base::DictionaryValue* value = new base::DictionaryValue(); | 449 base::DictionaryValue* value = new base::DictionaryValue(); |
| 449 SET_STR(key); | 450 SET_STR(key); |
| 450 SET_STR(value); | 451 SET_STR(value); |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 #undef SET_BYTES | 1079 #undef SET_BYTES |
| 1079 #undef SET_INT32 | 1080 #undef SET_INT32 |
| 1080 #undef SET_INT64 | 1081 #undef SET_INT64 |
| 1081 #undef SET_INT64_REP | 1082 #undef SET_INT64_REP |
| 1082 #undef SET_STR | 1083 #undef SET_STR |
| 1083 #undef SET_STR_REP | 1084 #undef SET_STR_REP |
| 1084 | 1085 |
| 1085 #undef SET_FIELD | 1086 #undef SET_FIELD |
| 1086 | 1087 |
| 1087 } // namespace syncer | 1088 } // namespace syncer |
| OLD | NEW |