[Autofill Assistant] Refactor RequiredFieldsHandler to make FallbackData and RequiredField generic.
This CL removes the hard-coded fields from the Fallback data for credit card and address. Instead, a map is used, and the required fields can now be specified by their enum values. This allows us to remove the callback for the field getters and retrieve the fallback values directly from the map. Bug: b/141362833 Change-Id: I6cd8f7371557d096f82921d0bb8a21527c33e9f8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1886820 Commit-Queue: Marian Fechete <marianfe@google.com> Reviewed-by:Clemens Arbesser <arbesser@google.com> Cr-Commit-Position: refs/heads/master@{#710723}
Showing
Please register or sign in to comment