Commit 1e63f8cb authored by Dominic Battre's avatar Dominic Battre Committed by Commit Bot

Update field_types.h to stay in sync with the server copy

Bug: 1014475
Change-Id: I18f0192e1c1edb893177705e60687ddf022f1f7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1862691Reviewed-by: default avatarMaxim Kolosovskiy <kolos@chromium.org>
Commit-Queue: Dominic Battré <battre@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706420}
parent 95e0ddd7
...@@ -56,6 +56,10 @@ FieldTypeGroup GroupTypeOfServerFieldType(ServerFieldType field_type) { ...@@ -56,6 +56,10 @@ FieldTypeGroup GroupTypeOfServerFieldType(ServerFieldType field_type) {
case ADDRESS_HOME_STREET_ADDRESS: case ADDRESS_HOME_STREET_ADDRESS:
case ADDRESS_HOME_SORTING_CODE: case ADDRESS_HOME_SORTING_CODE:
case ADDRESS_HOME_DEPENDENT_LOCALITY: case ADDRESS_HOME_DEPENDENT_LOCALITY:
case ADDRESS_HOME_STREET:
case ADDRESS_HOME_HOUSE_NUMBER:
case ADDRESS_HOME_FLOOR:
case ADDRESS_HOME_OTHER_SUBUNIT:
return ADDRESS_HOME; return ADDRESS_HOME;
case ADDRESS_BILLING_LINE1: case ADDRESS_BILLING_LINE1:
...@@ -716,6 +720,14 @@ std::string AutofillType::ServerFieldTypeToString(ServerFieldType type) { ...@@ -716,6 +720,14 @@ std::string AutofillType::ServerFieldTypeToString(ServerFieldType type) {
return "NOT_USERNAME"; return "NOT_USERNAME";
case UPI_VPA: case UPI_VPA:
return "UPI_VPA"; return "UPI_VPA";
case ADDRESS_HOME_STREET:
return "ADDRESS_HOME_STREET";
case ADDRESS_HOME_HOUSE_NUMBER:
return "ADDRESS_HOME_HOUSE_NUMBER";
case ADDRESS_HOME_FLOOR:
return "ADDRESS_HOME_FLOOR";
case ADDRESS_HOME_OTHER_SUBUNIT:
return "ADDRESS_HOME_OTHER_SUBUNIT";
case AMBIGUOUS_TYPE: case AMBIGUOUS_TYPE:
return "AMBIGUOUS_TYPE"; return "AMBIGUOUS_TYPE";
case MAX_VALID_FIELD_TYPE: case MAX_VALID_FIELD_TYPE:
......
...@@ -189,9 +189,26 @@ enum ServerFieldType { ...@@ -189,9 +189,26 @@ enum ServerFieldType {
// https://en.wikipedia.org/wiki/Unified_Payments_Interface // https://en.wikipedia.org/wiki/Unified_Payments_Interface
UPI_VPA = 102, UPI_VPA = 102,
// Just the street name of an address, no house number.
// Currently not used by Chrome.
ADDRESS_HOME_STREET = 103,
// House number of an address, may be alphanumeric.
// Currently not used by Chrome.
ADDRESS_HOME_HOUSE_NUMBER = 104,
// Floor within in a building, may be alphanumeric.
// Currently not used by Chrome.
ADDRESS_HOME_FLOOR = 105,
// A catch-all for other type of subunits (only used until something more
// precise is defined).
// Currently not used by Chrome.
ADDRESS_HOME_OTHER_SUBUNIT = 106,
// No new types can be added without a corresponding change to the Autofill // No new types can be added without a corresponding change to the Autofill
// server. // server.
MAX_VALID_FIELD_TYPE = 103, MAX_VALID_FIELD_TYPE = 107,
}; };
// The list of all HTML autocomplete field type hints supported by Chrome. // The list of all HTML autocomplete field type hints supported by Chrome.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment