commit | 1ba3f79ea0202e250b839696bd1e8171aeef0122 | [log] [tgz] |
---|---|---|
author | Elizabeth Popova <lizapopova@google.com> | Fri Oct 29 19:02:48 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 29 19:02:48 2021 |
tree | 3ec7e7d61188526942e1059ba986a609a1f7b674 | |
parent | 29ecc7f73bc046780960a95b68fbd8afbf98df2b [diff] |
[Passwords] Check for duplicates in add password dialog Now, on every website or username input change, the pair origin+username is checked for being already used. In this case the error message is shown and the saving is blocked. Previously, |usernamesForSameOrigin_| were computed for the fast check. Now, since origin can also change, usernames for all origins are precalculated and stored in |usernamesByOrigin_|. Note that in EDIT mode entries considered duplicates only if in the same store, but in ADD mode duplication is prevented irrespective of the store. Bug: 1236053 Change-Id: I07610f18a95fbb664c4febcdb75ead38265fcdfa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3250639 Commit-Queue: Elizabeth Popova <lizapopova@google.com> Reviewed-by: dpapad <dpapad@chromium.org> Reviewed-by: Viktor Semeniuk <vsemeniuk@google.com> Cr-Commit-Position: refs/heads/main@{#936495}
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.