Fill forms that change dynamically.
Attempts to refill a form that was modified after an
initial fill if it respects these conditions:
- Only if the form is modified after a fill
- Only if the form is modified less than 1 second after
the fill
- Only once per page
- Only refill group types that were filled initially
- Only if the form has the same "NameForAutofill"
Cq-Include-Trybots: luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Iaad7a49f8d0237fadacde590d473a9fcb3ae6323
Reviewed-on: https://chromium-review.googlesource.com/943251
Commit-Queue: Sebastien Seguin-Gagnon <[email protected]>
Reviewed-by: Roger McFarlane <[email protected]>
Reviewed-by: Moe Ahmadi <[email protected]>
Cr-Commit-Position: refs/heads/master@{#546926}
diff --git a/chrome/browser/autofill/autofill_uitest_util.h b/chrome/browser/autofill/autofill_uitest_util.h
index dc4fe6b..0cbcfa3d 100644
--- a/chrome/browser/autofill/autofill_uitest_util.h
+++ b/chrome/browser/autofill/autofill_uitest_util.h
@@ -12,11 +12,14 @@
namespace autofill {
class AutofillProfile;
+class CreditCard;
void AddTestProfile(Browser* browser, const AutofillProfile& profile);
void SetTestProfile(Browser* browser, const AutofillProfile& profile);
void SetTestProfiles(Browser* browser, std::vector<AutofillProfile>* profiles);
+void AddTestCreditCard(Browser* browser, const CreditCard& card);
+
} // namespace autofill
#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_UITEST_UTIL_H_