[Password Manager] Update old key elements only when best match exists
When we update parts of the key of existing credentials, we need the pre-update data. We take this data from the password store, as found in |best_matches|. Sometimes, the updated credential is not in the matches. This CL fixes a crash from https://chromium-review.googlesource.com/c/chromium/src/+/941522 where we presumed that the credentials are always in the matches. Bug: 833171, 817750 Change-Id: Id2aae19b307d65c3527cdf9a6c80703dc6bfeb34 Reviewed-on: https://chromium-review.googlesource.com/1012848 Commit-Queue: Christos Froussios <cfroussios@chromium.org> Reviewed-by:Maxim Kolosovskiy <kolos@chromium.org> Cr-Commit-Position: refs/heads/master@{#551303}
Showing
Please register or sign in to comment