commit | ddae156e67ca550d92c343263b25a96d50aa8578 | [log] [tgz] |
---|---|---|
author | Sebastien Lalancette <seblalancette@chromium.org> | Tue Apr 16 21:13:19 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 16 21:13:19 2019 |
tree | f89c948c52c9e90317d3c95f388b3e9f41752f7d | |
parent | f7379e3cb2cd2aa7109a9d5d66f79fdfc6f1df7a [diff] |
[AF] Added Rationalization to Eliminate Phone Country Code False Positives Added a set of field type relationship rules (in the form of an unordered_map) which will be used by a new function to determine whether a field should be handled by Autofill or not. For example, for Autofill to support fields of type "PHONE_HOME_COUNTRY_CODE", there would need to be at least one other field of type "PHONE_HOME_NUMBER" or "PHONE_HOME_CITY_AND_NUMBER". New rules can easily be added to the unordered_map, which makes the approach very scalable. No need to add the logic for the FAX numbers, as these aren't supported in the client, and are automatically set to UNKNOWN_TYPE. Unit tests were added. Manual test was performed against crbug and at https://seblalancette.github.io/rationalization.html Bug: 735479 Change-Id: I8a3a8388fb9e7e567163c4a504c21a314a340877 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1564797 Commit-Queue: Sebastien Lalancette <seblalancette@chromium.org> Reviewed-by: Fabio Tirelo <ftirelo@chromium.org> Cr-Commit-Position: refs/heads/master@{#651450}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .