summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 10:27:30 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 10:27:30 +0000
commitab7926922b5fac4f6cc8f14b0fec878b84fe2f32 (patch)
tree38b0da5644d99894483a15c3a0cb06fb942e250a /sync
parentf1605a02b021770e48bf43d7ca687f7aebe7e869 (diff)
downloadchromium_src-ab7926922b5fac4f6cc8f14b0fec878b84fe2f32.zip
chromium_src-ab7926922b5fac4f6cc8f14b0fec878b84fe2f32.tar.gz
chromium_src-ab7926922b5fac4f6cc8f14b0fec878b84fe2f32.tar.bz2
[Autofill, Sync] Sync additional Autofill address fields for i18n.
BUG=299154 TEST=unit_tests R=estade@chromium.org Review URL: https://codereview.chromium.org/127403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243832 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r--sync/protocol/autofill_specifics.proto7
-rw-r--r--sync/protocol/proto_value_conversions.cc4
2 files changed, 10 insertions, 1 deletions
diff --git a/sync/protocol/autofill_specifics.proto b/sync/protocol/autofill_specifics.proto
index f816e90..1402e47 100644
--- a/sync/protocol/autofill_specifics.proto
+++ b/sync/protocol/autofill_specifics.proto
@@ -28,7 +28,7 @@ message AutofillProfileSpecifics {
repeated string email_address = 5;
optional string company_name = 6;
- // Home address.
+ // Address.
optional string address_home_line1 = 7;
optional string address_home_line2 = 8;
optional string address_home_city = 9;
@@ -36,6 +36,11 @@ message AutofillProfileSpecifics {
optional string address_home_zip = 11;
optional string address_home_country = 12;
+ // Additional address fields for i18n.
+ optional string address_home_street_address = 17;
+ optional string address_home_sorting_code = 18;
+ optional string address_home_dependent_locality = 19;
+
// Phone.
repeated string phone_home_whole_number = 13;
diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc
index 59c3f30..b142919 100644
--- a/sync/protocol/proto_value_conversions.cc
+++ b/sync/protocol/proto_value_conversions.cc
@@ -422,6 +422,10 @@ base::DictionaryValue* AutofillProfileSpecificsToValue(
SET_STR(address_home_zip);
SET_STR(address_home_country);
+ SET_STR(address_home_street_address);
+ SET_STR(address_home_sorting_code);
+ SET_STR(address_home_dependent_locality);
+
SET_STR_REP(phone_home_whole_number);
return value;
}