Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: components/autofill/core/browser/autofill_manager.cc

Issue 512933004: mac: Don't show "Access Address Book" prompt if Autofill is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Require forms be autofillable. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..42eb3a9b2e32e3c2a142e1376e65f7c49e81b92a 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -292,6 +292,9 @@ bool AutofillManager::ShouldShowAccessAddressBookSuggestion(
if (!GetCachedFormAndField(form, field, &form_structure, &autofill_field))
return false;
+ if (!form_structure->IsAutofillable())
Evan Stade 2014/08/28 00:33:16 why are we even getting to this point if the form
erikchen 2014/08/28 00:39:37 I don't know. See the first exchange between isher
+ return false;
Ilya Sherman 2014/08/28 00:34:19 Could you add test coverage for this change as wel
erikchen 2014/08/28 17:01:17 Done.
+
return personal_data_->ShouldShowAccessAddressBookSuggestion(
autofill_field->Type());
}
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | components/autofill/core/browser/personal_data_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698