[AF] Turn Off Autofill When Autocomplete=off and No Server Data
Overwrite the overall predicted field type to UNKNOWN_TYPE when there
is no server data for this field, and the autocomplete attribute is
set to off.
Testing:
Added unit tests with flag ON and OFF.
Tested manually to see that the issue seen in crbug.com/867995 is
fixed.
Bug: 949783
Change-Id: I0f3071edf30019aba5c374a866c3f9506090d715
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1554048
Commit-Queue: Fabio Tirelo <[email protected]>
Reviewed-by: Fabio Tirelo <[email protected]>
Auto-Submit: Sebastien Lalancette <[email protected]>
Cr-Commit-Position: refs/heads/master@{#648666}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 41771ef4..073657a 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -139,6 +139,11 @@
"When enabled, no local copy of server card will be saved when credit card "
"upload succeeds.";
+const char kAutofillOffNoServerDataName[] = "Autofill Off No Server Data";
+const char kAutofillOffNoServerDataDescription[] =
+ "Disables Autofill for fields with autocomplete off that have no "
+ "crowd-sourced evidence that Autofill would be helpful.";
+
const char kAutofillProfileClientValidationName[] =
"Autofill Validates Profiles By Client";
const char kAutofillProfileClientValidationDescription[] =