PasswordFormManager clean-up.
There are 2 problems with function PasswordFormManager::UpdatePendingAndGetOldKey 1.It has pretty complicated and confusing logic in updating password_element, username_element and submit_element. Now these variables have no meaning for filling or saving. So it doesn't make sense to update password store records because of them (moreover username and password elements are part of the key). So this code may be removed. 2.This function is doing 2 independent actions, update *elements and finds which other elements needed to be updated. Now the time to throw away garbage, since this code will be copied to NewPasswordFormManager. This CL removes item 1 and because of 2, the function is renamed to FindOtherCredentialsToUpdate. Bug: 831123 Change-Id: Ided9f7fe3156fc5c7384cc4278d7d61b416a77a6 Reviewed-on: https://chromium-review.googlesource.com/1169164 Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#582168}
Showing
Please register or sign in to comment