| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| index ed397097d793279f6bd4a22db6a7dac8c8c86100..baf7ef45d5dfe5da07d31b4d6f83ffe8f4c86e2a 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| @@ -422,13 +422,10 @@ void AutofillDialogControllerImpl::Show() {
|
| dialog_shown_timestamp_ = base::Time::Now();
|
|
|
| // Determine what field types should be included in the dialog.
|
| - bool has_types = false;
|
| - bool has_sections = false;
|
| - form_structure_.ParseFieldTypesFromAutocompleteAttributes(
|
| - &has_types, &has_sections);
|
| + form_structure_.ParseFieldTypesFromAutocompleteAttributes();
|
|
|
| // Fail if the author didn't specify autocomplete types.
|
| - if (!has_types) {
|
| + if (!form_structure_.has_author_specified_types()) {
|
| callback_.Run(
|
| AutofillClient::AutocompleteResultErrorDisabled,
|
| base::ASCIIToUTF16("Form is missing autocomplete attributes."),
|
|
|