[Autofill local card migration settings page] Add IsMigratable attribute to each CreditCardEntry.
A card is migratable only when this card's card number and expiration date is valid and does not have a duplicated server card. The validation and duplication check is only supported in the c++ side, so we add a new attribute called IsMigratable when we create each CreditCardEntry in autofill_util in order to check the migration requirement later. The following CLs will be: 1. Use the added IsMigratable, syncStatus and experimental flag to check the migration requirement. 2. Display the migration button to the user when requirements meet. 3. Trigger migration when user click on the button with a new API call. Please refer to the design doc for more details: https://docs.google.com/document/d/1J7YyBeKZZaBhjAHnMEezvuBa5x1pk_XCh_yZvV_HMmc/edit#heading=h.1wm3blr98d8i Bug: 852904 Cq-Include-Trybots: luci.chromium.try:closure_compilation Change-Id: Ib02706bea5e7485eb8ac7dfd227003e3380e24af Reviewed-on: https://chromium-review.googlesource.com/1173142 Commit-Queue: Sujie Zhu <sujiezhu@google.com> Reviewed-by:Fabio Tirelo <ftirelo@chromium.org> Reviewed-by:
Steven Bennetts <stevenjb@chromium.org> Cr-Commit-Position: refs/heads/master@{#583142}
Showing
Please register or sign in to comment