Chromium Code Reviews
DescriptionMake ObservingAutofillClient a WebContentsUserData
ObservingAutofillClient was triggering a stack-use-after-return under certain
circumstances (see bug), presumably because the WebContents and
ContentPasswordManagerDriver stayed alive after the local
ObservingAutofillClient variable was deleted when the test body returned.
This change makes ObservingAutofillClient a WebContentsUserData so that it
matches the lifetime of the WebContents which outlives the
ContentPasswordManagerDriver that uses it. This matches how the production code
works as well (ChromeAutofillClient is a WebContentsUserData).
BUG=681710
Review-Url: https://codereview.chromium.org/2641653002
Cr-Commit-Position: refs/heads/master@{#444380}
Committed: https://chromium.googlesource.com/chromium/src/+/921882bd5ee50f1e59288a51f0fd018261f3ffc2
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|
|||||||||||||||||||