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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 SET_STR(value); | 279 SET_STR(value); |
280 SET_INT64_REP(usage_timestamp); | 280 SET_INT64_REP(usage_timestamp); |
281 SET(profile, AutofillProfileSpecificsToValue); | 281 SET(profile, AutofillProfileSpecificsToValue); |
282 return value; | 282 return value; |
283 } | 283 } |
284 | 284 |
285 base::DictionaryValue* AutofillProfileSpecificsToValue( | 285 base::DictionaryValue* AutofillProfileSpecificsToValue( |
286 const sync_pb::AutofillProfileSpecifics& proto) { | 286 const sync_pb::AutofillProfileSpecifics& proto) { |
287 base::DictionaryValue* value = new base::DictionaryValue(); | 287 base::DictionaryValue* value = new base::DictionaryValue(); |
288 SET_STR(guid); | 288 SET_STR(guid); |
| 289 SET_STR(origin); |
289 | 290 |
290 SET_STR_REP(name_first); | 291 SET_STR_REP(name_first); |
291 SET_STR_REP(name_middle); | 292 SET_STR_REP(name_middle); |
292 SET_STR_REP(name_last); | 293 SET_STR_REP(name_last); |
293 SET_STR_REP(email_address); | 294 SET_STR_REP(email_address); |
294 SET_STR(company_name); | 295 SET_STR(company_name); |
295 | 296 |
296 SET_STR(address_home_line1); | 297 SET_STR(address_home_line1); |
297 SET_STR(address_home_line2); | 298 SET_STR(address_home_line2); |
298 SET_STR(address_home_city); | 299 SET_STR(address_home_city); |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 #undef SET_BYTES | 857 #undef SET_BYTES |
857 #undef SET_INT32 | 858 #undef SET_INT32 |
858 #undef SET_INT64 | 859 #undef SET_INT64 |
859 #undef SET_INT64_REP | 860 #undef SET_INT64_REP |
860 #undef SET_STR | 861 #undef SET_STR |
861 #undef SET_STR_REP | 862 #undef SET_STR_REP |
862 | 863 |
863 #undef SET_FIELD | 864 #undef SET_FIELD |
864 | 865 |
865 } // namespace syncer | 866 } // namespace syncer |
OLD | NEW |