Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Issue 2641653002: Make ObservingAutofillClient a WebContentsUserData (Closed)

Created:
3 years, 11 months ago by estark
Modified:
3 years, 11 months ago
Reviewers:
vasilii
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -6 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 5 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
estark
vasilii, PTAL? Thanks!
3 years, 11 months ago (2017-01-18 00:00:05 UTC) #4
vasilii
lgtm I'm a bit concerned that ChromeAutofillClient is also instantiated for the same tab via ...
3 years, 11 months ago (2017-01-18 12:10:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641653002/1
3 years, 11 months ago (2017-01-18 16:09:54 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 16:14:25 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/921882bd5ee50f1e59288a51f0fd...

Powered by Google App Engine
This is Rietveld 408576698