0

Autofill - don't respect autocomplete="off" for mac address book or

scan credit card suggestions.

BUG=450680

Review URL: https://codereview.chromium.org/864873002

Cr-Commit-Position: refs/heads/master@{#312566}
This commit is contained in:
estade
2015-01-21 21:30:33 -08:00
committed by Commit bot
parent e8577e72d0
commit 5c598826de
2 changed files with 2 additions and 2 deletions
components/autofill/core/browser

@ -1108,7 +1108,7 @@ bool AutofillManager::GetCachedFormAndField(const FormData& form,
AutofillField* AutofillManager::GetAutofillField(const FormData& form,
const FormFieldData& field) {
if (!personal_data_ || !field.should_autocomplete)
if (!personal_data_)
return NULL;
FormStructure* form_structure = NULL;

@ -2826,7 +2826,7 @@ TEST_F(AutofillManagerTest, AccessAddressBookPrompt) {
autofill_manager_->ShouldShowAccessAddressBookSuggestion(form, field));
field.should_autocomplete = false;
EXPECT_FALSE(
EXPECT_TRUE(
autofill_manager_->ShouldShowAccessAddressBookSuggestion(form, field));
}
#endif // defined(OS_MACOSX) && !defined(OS_IOS)