| Index: components/autofill/content/renderer/autofill_agent.cc
|
| diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
|
| index e67f87572d479ef1f272d6b0267203cfc929a02b..0a9b57fd13bf442ea9e3720934c9adf3248a8dc1 100644
|
| --- a/components/autofill/content/renderer/autofill_agent.cc
|
| +++ b/components/autofill/content/renderer/autofill_agent.cc
|
| @@ -632,9 +632,15 @@ void AutofillAgent::QueryAutofillSuggestions(
|
| // warning. Otherwise, we want to ignore fields that disable autocomplete, so
|
| // that the suggestions list does not include suggestions for these form
|
| // fields -- see comment 1 on http://crbug.com/69914
|
| - const RequirementsMask requirements =
|
| + RequirementsMask requirements =
|
| element.autoComplete() ? REQUIRE_AUTOCOMPLETE : REQUIRE_NONE;
|
|
|
| + // If we're ignoring autocomplete="off", always extract everything.
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kIgnoreAutocompleteOffForAutofill)) {
|
| + requirements = REQUIRE_NONE;
|
| + }
|
| +
|
| FormData form;
|
| FormFieldData field;
|
| if (!FindFormAndFieldForFormControlElement(element, &form, &field,
|
|
|