Add Autofill observer to trigger a CSD ping on each credit card form. This updates ClientSideDetectionHost to self register as an AutofillManager::Observer, with the OnFieldTypesDetermined callback implemented. It checks for the form type kCreditCardForm to trigger sending a CSD ping. Behavior is gated behind the ClientSideDetectionAutofillCreditCardForm feature (disabled by default). Additionally, it has two parameters. HCAcceptanceRate defaults to 1.0 and can be set to a lower number so that some percentage of events that otherwise match the high-confidence allowlist instead proceed to pre-classification. SampleRate defaults to 0.0 and will be set to a higher number that specifies what percentage of events should produce a CSD ping. The internal repo change to csd.proto is in cl/803130110. Bug: 443098659 Change-Id: Ie89ffe35c0ae0983bb8f0dc5e934b291b32fb4d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6911850 Commit-Queue: Brian Begnoche <bcb@chromium.org> Reviewed-by: Nwokedi Idika <nwokedi@chromium.org> Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org> Reviewed-by: Jan Keitel <jkeitel@google.com> Reviewed-by: Xinghui Lu <xinghuilu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1517874}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.