Chromium Code Reviews| Index: components/autofill/core/browser/autofill_manager.cc |
| diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc |
| index d599bce07603f84b97bd881bbe88c249078ea123..ecd58bd3ecf1e40d1f51ef37fd7926534bf7675b 100644 |
| --- a/components/autofill/core/browser/autofill_manager.cc |
| +++ b/components/autofill/core/browser/autofill_manager.cc |
| @@ -2007,6 +2007,11 @@ void AutofillManager::DeterminePossibleFieldTypesForUpload( |
| // profile or credit card, identify any stored types that match the value. |
| for (size_t i = 0; i < submitted_form->field_count(); ++i) { |
| AutofillField* field = submitted_form->field(i); |
| + if (!field->possible_types().empty()) { |
| + // If this is an upload for password form submission, Password Manager |
| + // could already set types for some fields. |
|
Roger McFarlane (Chromium)
2017/04/04 19:09:42
The goal of this function is to include all of the
dvadym
2017/04/05 13:28:28
Good point. I thought, when I was writing this cod
|
| + continue; |
| + } |
| ServerFieldTypeSet matching_types; |
| base::string16 value; |