[Passwords] Fix PasswordForm::IsPossibleChangePasswordForm()
Prior to this change PasswordForm's IsPossibleChangePasswordForm() simply checked whether the new_password_field member was not the empty string. This relied on setting it to a non-empty name during form parsing if a new password field was found. However, it thus was unable to disinguish missing new password fields from existing ones without a name. This change fixes this issue by checking that new_password_field_renderer_id is set instead. Fixed: 1164971 Change-Id: Icb0c6ab8d7841b7ecc3f7c09088be659b240f7e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622432Reviewed-by:Maria Kazinova <kazinova@google.com> Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#842473}
Showing
Please register or sign in to comment