[Password Manager] Use successful XHR submission as a signal for password saving
commitc21f1c4caebb3f26706083c52b8f240edef494d2
authorgcasto <gcasto@chromium.org>
Thu, 19 Mar 2015 21:57:03 +0000 (19 14:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Mar 2015 21:57:29 +0000 (19 21:57 +0000)
tree9cb2fe1ac2245b3f18848697cb2e7c37c3bea6a5
parent7cab463ee65c5a1546477bc60148de13e1ac863b
[Password Manager] Use successful XHR submission as a signal for password saving

If an XHR has succeeded and the form that the user was typing in has now
disappeared either by no longer being visible or being removed from the DOM,
prompt to save.

BUG=464891

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

Cr-Commit-Position: refs/heads/master@{#321443}
chrome/browser/password_manager/password_manager_browsertest.cc
chrome/test/data/password/password_xhr_submit.html
components/autofill/content/renderer/autofill_agent.cc
components/autofill/content/renderer/autofill_agent.h
components/autofill/content/renderer/password_autofill_agent.cc
components/autofill/content/renderer/password_autofill_agent.h