Improve computing autcomplete attributes in utils.
Autocomplete attributes are string properties of DOM elements. For parsing password forms, a few special values are important. This CL adds a few functions to password_form_conversion_utils to compute an enum representation of the autocomplete attributes, and a simple cache to keep those computed values to minimize string comparisons. Bug: 833838 Change-Id: I6c386895be9af54ae1e31c715795a26b29eb0e5c Reviewed-on: https://chromium-review.googlesource.com/1027881Reviewed-by:Roger McFarlane <rogerm@chromium.org> Commit-Queue: Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#561441}
Showing
This diff is collapsed.
Please register or sign in to comment