Save autofilled not last typed username in PasswordManager
commit1cdd1996e8a560bce1a366aea34d20727b9e148e
authordvadym <dvadym@chromium.org>
Wed, 7 Jan 2015 09:27:51 +0000 (7 01:27 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 7 Jan 2015 09:28:33 +0000 (7 09:28 +0000)
tree66341c7d479bd29ba16e258be12fcfbb066c872c
parent9ade510cebe925b283837fbe210cc7eafb14660a
Save autofilled not last typed username in PasswordManager

In http://crbug.com/405574 it was implemented that last typed username and password are stored on TextChanged event before JavaScript can change them. There is a problem when username is autofilled. Since autofilling doesn't raise TextChange event, we can't save autofilled value. This CL will keep the current value of the username field if it's prepended by the characters the user has typed before.

BUG=444775

Review URL: https://codereview.chromium.org/825653002

Cr-Commit-Position: refs/heads/master@{#310257}
chrome/renderer/autofill/password_autofill_agent_browsertest.cc
components/autofill/content/renderer/password_form_conversion_utils.cc