Fix saving of password when choosing in a saving prompt.
When the user chooses a password in the save prompt from the combobox, this password has to be saved. The current implementation is the following: 1.When the user chooses another password, UpdatePasswordValue is called 2.UpdatePasswordValue sets password_value to this password. 3.CreatePendingCredentials is called (it detects what case it's - Save, Update etc and creates credentials to write to store). But if there is new_password_value in submitted_form, new_password_value will be chosen to save instead of the user chosen. That's incorrect and this CL fixes that. Namely: it removes new_password_value which makes that user chosen value is saved. Along the way, it was fixed calculating password_element, that fixes sending votes. Bug: 831123, 919487 Change-Id: I3f202224782eb1a1220df3e0ee2076f0ff2da23b Reviewed-on: https://chromium-review.googlesource.com/c/1451982 Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by:Maxim Kolosovskiy <kolos@chromium.org> Cr-Commit-Position: refs/heads/master@{#629101}
Showing
Please register or sign in to comment