[Autofill] Fix local save metric for dynamic and accordion form
Set the |from_dynamic_change_form| and |has_non_focusable_field| in SaveCreditCardOptions when Chrome shows local save prompt to user from a dynamic/accordion form so that sub-histogram can be logged correctly. We add tests to ensure these two fields are correctly populated in SaveCreditCardOptions when a user was prompted local-save/upload from a dynamic/accordion form. The tests for the local save sub-histogram were already introduced in save_card_bubble_controller_impl_unittest.cc Bug: 989771 Change-Id: I286416e2d8a4f90f2e5740658cf414531ba0a574 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730853 Commit-Queue: Sujie Zhu <sujiezhu@google.com> Reviewed-by:Maxim Kolosovskiy <kolos@chromium.org> Reviewed-by:
Jared Saul <jsaul@google.com> Cr-Commit-Position: refs/heads/master@{#684363}
Showing
Please register or sign in to comment