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

Issue 2603623002: AutofillDriverFactory manages information about user gestures (Closed)

Created:
3 years, 12 months ago by vabr (Chromium)
Modified:
3 years, 9 months ago
Reviewers:
Mathieu, dvadym
CC:
chromium-reviews, rouslan+autofill_chromium.org, jam, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AutofillDriverFactory manages information about user gestures When a password field is autofilled, the value is not accessible to JavaScript until the user clicks or types in the page. To keep track of this, the frames report such user gestures, and ChromeAutofillClient distributes such a signal to all other frames in the same WebContent, via their common AutofillDriverFactory. This does not work when a new frame is added later, because the browser process does not keep track whether the user gestures were seen already. Newly added frames never learn about the user already having clicked in the page. This CL fixes that by modifying AutofillDriverFactory to remember the user gestures and notify also drivers added later. The flag is reset on main page navigation. The CL also makes parts of the AutofillDriverFactory API public, as long as they do not modify the drivers map. This results in a slight reordering of methods. BUG=669045 Review-Url: https://codereview.chromium.org/2603623002 Cr-Commit-Position: refs/heads/master@{#453245} Committed: https://chromium.googlesource.com/chromium/src/+/ce7eba36c420dabb86b57f1851d5c86115d7d13c

Patch Set 1 #

Patch Set 2 : Just rebased #

Patch Set 3 : Just rebased #

Patch Set 4 : Use AutofillDriverFactory #

Patch Set 5 : Self review #

Patch Set 6 : Make safe API public #

Total comments: 2

Patch Set 7 : Remove braces #

Total comments: 2

Patch Set 8 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -39 lines) Patch
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 1 chunk +1 line, -9 lines 0 comments Download
M components/autofill/content/browser/content_autofill_driver.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M components/autofill/core/browser/autofill_driver.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_driver_factory.h View 1 2 3 4 5 6 7 2 chunks +24 lines, -13 lines 0 comments Download
M components/autofill/core/browser/autofill_driver_factory.cc View 1 2 3 4 5 6 1 chunk +23 lines, -9 lines 0 comments Download
M components/autofill/core/browser/autofill_driver_factory_unittest.cc View 1 2 3 4 5 5 chunks +68 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
vabr (Chromium)
Hi Vadym, Could you please review this CL? Thanks! Vaclav
3 years, 10 months ago (2017-02-24 10:49:33 UTC) #19
dvadym
LGTM, thanks for fixing this. https://codereview.chromium.org/2603623002/diff/100001/components/autofill/core/browser/autofill_driver_factory.cc File components/autofill/core/browser/autofill_driver_factory.cc (right): https://codereview.chromium.org/2603623002/diff/100001/components/autofill/core/browser/autofill_driver_factory.cc#newcode36 components/autofill/core/browser/autofill_driver_factory.cc:36: for (auto& driver : ...
3 years, 10 months ago (2017-02-24 12:48:21 UTC) #22
vabr (Chromium)
Thanks, Vadym! Mathieu, Could you please do an OWNERS review for chrome/browser/ui/autofill/chrome_autofill_client.cc ? Thanks! Vaclav ...
3 years, 10 months ago (2017-02-24 12:54:25 UTC) #26
vabr (Chromium)
Hi Mathieu, Just a friendly ping -- could you please do an OWNERS review for ...
3 years, 9 months ago (2017-02-27 15:41:37 UTC) #29
Mathieu
Sorry I had forgotten to send my blessing, lgtm https://codereview.chromium.org/2603623002/diff/120001/components/autofill/core/browser/autofill_driver_factory.h File components/autofill/core/browser/autofill_driver_factory.h (right): https://codereview.chromium.org/2603623002/diff/120001/components/autofill/core/browser/autofill_driver_factory.h#newcode20 components/autofill/core/browser/autofill_driver_factory.h:20: ...
3 years, 9 months ago (2017-02-27 15:46:29 UTC) #30
vabr (Chromium)
Thanks, Mathieu! https://codereview.chromium.org/2603623002/diff/120001/components/autofill/core/browser/autofill_driver_factory.h File components/autofill/core/browser/autofill_driver_factory.h (right): https://codereview.chromium.org/2603623002/diff/120001/components/autofill/core/browser/autofill_driver_factory.h#newcode20 components/autofill/core/browser/autofill_driver_factory.h:20: // creating, notifying, retrieveing and deleting on ...
3 years, 9 months ago (2017-02-27 16:45:46 UTC) #31
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/2603623002/140001
3 years, 9 months ago (2017-02-27 16:46:22 UTC) #34
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 17:42:33 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/ce7eba36c420dabb86b57f1851d5...

Powered by Google App Engine
This is Rietveld 408576698