[Passwords/Settings] Restrict plaintext pwd to ShowPasswordBehavior
No behavior is changed. Before this CL, passwords_section was responsible for initializing and storing the displayed password strings of each element in savedPasswords and multiStoreSavedPasswords. Those were even initialized to the empty string, relying on implementation details of ShowPasswordBehavior (an empty string means the plaintext password is not being shown). This CL makes the password string a property of ShowPasswordBehavior, simplifying the passwords_section code. As a consequence, the PasswordUiEntryWithPassword and MultiStorePasswordUiEntryWithPassword typedefs are no longer needed. RemovePasswordBehavior's entryToRemove property and ShowPasswordBehavior's item property are both renamed to entry, since they represent the same object. Bug: None Change-Id: I58b58626999de5144913730d853ae0a4b839ae56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2215321 Commit-Queue: Victor Vianna <victorvianna@google.com> Reviewed-by:Friedrich [CET] <fhorschig@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Reviewed-by:
Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#771813}
Showing
Please register or sign in to comment