| Index: components/autofill/core/browser/autocomplete_history_manager.cc
|
| diff --git a/components/autofill/core/browser/autocomplete_history_manager.cc b/components/autofill/core/browser/autocomplete_history_manager.cc
|
| index 5b8bbb48644b12c40c06c7216339a7f4787204a9..e7081c0f9053b3d2967690233e72c83b7b3d90a9 100644
|
| --- a/components/autofill/core/browser/autocomplete_history_manager.cc
|
| +++ b/components/autofill/core/browser/autocomplete_history_manager.cc
|
| @@ -126,6 +126,7 @@ void AutocompleteHistoryManager::OnFormSubmitted(const FormData& form) {
|
| // - non-empty name
|
| // - non-empty value
|
| // - text field
|
| + // - autocomplete is not disabled
|
| // - value is not a credit card number
|
| // - value is not a SSN
|
| std::vector<FormFieldData> values;
|
| @@ -135,6 +136,7 @@ void AutocompleteHistoryManager::OnFormSubmitted(const FormData& form) {
|
| if (!iter->value.empty() &&
|
| !iter->name.empty() &&
|
| IsTextField(*iter) &&
|
| + iter->should_autocomplete &&
|
| !autofill::IsValidCreditCardNumber(iter->value) &&
|
| !autofill::IsSSN(iter->value)) {
|
| values.push_back(*iter);
|
|
|