diff options
author | rouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-11 19:35:00 +0000 |
---|---|---|
committer | rouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-11 19:35:00 +0000 |
commit | 6c3173d8b1cbb031109f35fd51ed0179e0eb7903 (patch) | |
tree | 5fac3f7320318d984f6f34a3a151803f8bdaf3f8 /sync | |
parent | 3d6d89d74316ef70bc89265c590f9cc7421c00fb (diff) | |
download | chromium_src-6c3173d8b1cbb031109f35fd51ed0179e0eb7903.zip chromium_src-6c3173d8b1cbb031109f35fd51ed0179e0eb7903.tar.gz chromium_src-6c3173d8b1cbb031109f35fd51ed0179e0eb7903.tar.bz2 |
Store the language code for the address in autofill profile.
After BuildComponents() returns the language code that should be used to
format the address, Chrome should store and sync this language code
along with the autofill profile. The language code should not be
communicated to the autofill server, because it's not the type of data
that will be sent to an input field on a webpage.
BUG=354955
Review URL: https://codereview.chromium.org/212873003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r-- | sync/protocol/autofill_specifics.proto | 1 | ||||
-rw-r--r-- | sync/protocol/proto_value_conversions.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sync/protocol/autofill_specifics.proto b/sync/protocol/autofill_specifics.proto index 1402e47..64d8e1e 100644 --- a/sync/protocol/autofill_specifics.proto +++ b/sync/protocol/autofill_specifics.proto @@ -40,6 +40,7 @@ message AutofillProfileSpecifics { optional string address_home_street_address = 17; optional string address_home_sorting_code = 18; optional string address_home_dependent_locality = 19; + optional string address_home_language_code = 20; // 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 06ecdfe..04c5f06 100644 --- a/sync/protocol/proto_value_conversions.cc +++ b/sync/protocol/proto_value_conversions.cc @@ -438,6 +438,7 @@ base::DictionaryValue* AutofillProfileSpecificsToValue( SET_STR(address_home_street_address); SET_STR(address_home_sorting_code); SET_STR(address_home_dependent_locality); + SET_STR(address_home_language_code); SET_STR_REP(phone_home_whole_number); return value; |