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 68d2a361e98cdff996d11e5d7def52bbd4fa7053..ea0167dc82a4dc0b1cdbad85d167ca22be8e935b 100644 |
| --- a/components/autofill/core/browser/autofill_manager.cc |
| +++ b/components/autofill/core/browser/autofill_manager.cc |
| @@ -285,8 +285,9 @@ void AutofillManager::ShowAutofillSettings() { |
| bool AutofillManager::ShouldShowAccessAddressBookSuggestion( |
| const FormData& form, |
| const FormFieldData& field) { |
| - if (!personal_data_) |
| + if (!personal_data_ || !field.should_autocomplete) |
| return false; |
| + |
|
Ilya Sherman
2014/08/28 18:40:49
We still shouldn't be showing these suggestions fo
erikchen
2014/08/28 20:57:34
Added the check.
|
| FormStructure* form_structure = NULL; |
| AutofillField* autofill_field = NULL; |
| if (!GetCachedFormAndField(form, field, &form_structure, &autofill_field)) |