| Index: components/autofill/core/browser/form_structure.cc
|
| diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
|
| index 2f8b83f6cd3d7b28e805bac50b39e33d3d4c7823..625b1656ebab8bceb8aa45df70aee3b3fef7669d 100644
|
| --- a/components/autofill/core/browser/form_structure.cc
|
| +++ b/components/autofill/core/browser/form_structure.cc
|
| @@ -232,6 +232,14 @@ HtmlFieldType FieldTypeFromAutocompleteAttributeValue(
|
| if (autocomplete_attribute_value == "postal-code")
|
| return HTML_TYPE_POSTAL_CODE;
|
|
|
| + // content_switches.h isn't accessible from here, hence we have
|
| + // to copy the string literal. This should be removed soon anyway.
|
| + if (autocomplete_attribute_value == "address" &&
|
| + CommandLine::ForCurrentProcess()->HasSwitch(
|
| + "enable-experimental-web-platform-features")) {
|
| + return HTML_TYPE_FULL_ADDRESS;
|
| + }
|
| +
|
| if (autocomplete_attribute_value == "cc-name")
|
| return HTML_TYPE_CREDIT_CARD_NAME;
|
|
|
|
|