[Autofill] [Traffic Light] Don't offer to save if too many strikes
This change checks the Autofill StrikeDatabase before credit card save.
If the card has been ignored/declined/rejected too many times in the
past, it will not show the save card bubble (but still show the icon) on
Desktop, or not show the save card infobar on Mobile.
Bug: 884817
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: I5c6591f5efd3d4719ce856080685b601c4f4be4f
Reviewed-on: https://chromium-review.googlesource.com/c/1236291
Commit-Queue: Jared Saul <[email protected]>
Reviewed-by: Sebastien Seguin-Gagnon <[email protected]>
Reviewed-by: Rouslan Solomakhin <[email protected]>
Reviewed-by: Moe Ahmadi <[email protected]>
Reviewed-by: Eugene But <[email protected]>
Reviewed-by: Richard Coles <[email protected]>
Reviewed-by: Evan Stade <[email protected]>
Cr-Commit-Position: refs/heads/master@{#598409}
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index d93c4c2c..1349d94 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -273,6 +273,9 @@
extern const char kEnableAutofillLocalCardMigrationShowFeedbackName[];
extern const char kEnableAutofillLocalCardMigrationShowFeedbackDescription[];
+extern const char kEnableAutofillSaveCreditCardUsesStrikeSystemName[];
+extern const char kEnableAutofillSaveCreditCardUsesStrikeSystemDescription[];
+
extern const char kEnableAutofillToolkitViewsCreditCardDialogsMac[];
extern const char kEnableAutofillToolkitViewsCreditCardDialogsMacDescription[];