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

Issue 767353002: Support for password manager suggestions on password fields. (Closed)

Created:
6 years ago by jww
Modified:
6 years ago
CC:
benquan, browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, jam, mkwst+watchlist-passwords_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

Support for password manager suggestions on password fields. This adds support for the password manager to, optionally, request suggestions to be displayed on a password field rather than the traditional choice of a username field. While not used right now, this is a prerequisite for implementing "fill on account select" as an experiment since there needs to be a way for users to fill on select if the username field is uneditable. This is implemented by adding an option to the autofill IPC message that the field to receive suggestions is a password field, not a username field. Thus, this the password manager (a) knows to only show one suggestion for the specified username, and (b) knows that there should be a title in th dropdown menu. BUG=410963 Committed: https://crrev.com/1d7e800d82d104222425aba32e97e19a4edae324 Cr-Commit-Position: refs/heads/master@{#307549}

Patch Set 1 #

Patch Set 2 : Remove some unnecessary includes #

Total comments: 6

Patch Set 3 : Address gcasto's comments #

Total comments: 18

Patch Set 4 : Fixes from estade comments #

Patch Set 5 : Rebase on ToT #

Total comments: 6

Patch Set 6 : gcasto nit fixes #

Patch Set 7 : Rebase on ToT #

Patch Set 8 : Updated DEPS #

Patch Set 9 : Updated GN deps #

Patch Set 10 : Fixed Windows compile issue #

Patch Set 11 : More Windows compile issues #

Patch Set 12 : Yet Another Windows Compile Error #

Patch Set 13 : Added message value to iOS grit whitelist #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -16 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 1 2 3 4 5 chunks +15 lines, -3 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M components/autofill/content/common/autofill_messages.h View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M components/autofill/core/browser/popup_item_ids.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/autofill_constants.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill_strings.grdp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +13 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (10 generated)
jww
I forgot to mention that this CL was originally split from https://codereview.chromium.org/492043003/ and is a ...
6 years ago (2014-12-01 21:57:46 UTC) #2
Garrett Casto
Adding Evan to review the Autofill portion of this. https://codereview.chromium.org/767353002/diff/20001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc (right): https://codereview.chromium.org/767353002/diff/20001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc#newcode432 chrome/browser/ui/autofill/autofill_popup_controller_impl.cc:432: ...
6 years ago (2014-12-03 00:35:16 UTC) #4
jww
https://codereview.chromium.org/767353002/diff/20001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc (right): https://codereview.chromium.org/767353002/diff/20001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc#newcode432 chrome/browser/ui/autofill/autofill_popup_controller_impl.cc:432: identifiers_[selected_line] == POPUP_ITEM_ID_TITLE) On 2014/12/03 00:35:15, Garrett Casto wrote: ...
6 years ago (2014-12-03 04:56:11 UTC) #5
jww
tsepez@chromium.org: Please review changes in components/autofill/content/common/autofill_messages.h and related IPC changes. Thanks!
6 years ago (2014-12-03 04:56:47 UTC) #7
Evan Stade
https://codereview.chromium.org/767353002/diff/40001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc (right): https://codereview.chromium.org/767353002/diff/40001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc#newcode121 chrome/browser/ui/autofill/autofill_popup_controller_impl.cc:121: title_font_list_ = name_font_list_.DeriveWithStyle(gfx::Font::BOLD); nit: put this below subtext_font_list so ...
6 years ago (2014-12-03 17:54:50 UTC) #8
Tom Sepez
Messages themselves LGTM from a security point-of-view once the implementation details are worked out. https://codereview.chromium.org/767353002/diff/40001/components/autofill/content/common/autofill_messages.h ...
6 years ago (2014-12-03 18:17:09 UTC) #9
jww
https://codereview.chromium.org/767353002/diff/40001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc (right): https://codereview.chromium.org/767353002/diff/40001/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc#newcode121 chrome/browser/ui/autofill/autofill_popup_controller_impl.cc:121: title_font_list_ = name_font_list_.DeriveWithStyle(gfx::Font::BOLD); On 2014/12/03 17:54:49, Evan Stade wrote: ...
6 years ago (2014-12-04 18:59:57 UTC) #10
Garrett Casto
LGTM with nits. https://codereview.chromium.org/767353002/diff/80001/components/autofill/content/common/autofill_messages.h File components/autofill/content/common/autofill_messages.h (right): https://codereview.chromium.org/767353002/diff/80001/components/autofill/content/common/autofill_messages.h#newcode13 components/autofill/content/common/autofill_messages.h:13: #include "components/autofill/core/common/autofill_constants.h" Shouldn't need to include ...
6 years ago (2014-12-05 19:30:54 UTC) #11
jww
estade, can you take another look at the latest version? Thanks! https://codereview.chromium.org/767353002/diff/80001/components/autofill/content/common/autofill_messages.h File components/autofill/content/common/autofill_messages.h (right): ...
6 years ago (2014-12-05 20:23:10 UTC) #12
Evan Stade
sorry, lgtm
6 years ago (2014-12-06 01:59:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767353002/120001
6 years ago (2014-12-06 17:21:51 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/28670) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/39710)
6 years ago (2014-12-06 17:25:52 UTC) #17
jww
Jochen, can you take a look at components/password_manager/DEPS? I added a DEPS to components/strings/grit, and ...
6 years ago (2014-12-06 17:51:30 UTC) #19
jochen (gone - plz use gerrit)
do you need to also update the gyp / gn configuration to have this dependency?
6 years ago (2014-12-08 12:13:18 UTC) #20
jww
jochen: I think it is unnecessary (it compiled fine), but I added it to the ...
6 years ago (2014-12-08 18:10:29 UTC) #21
jochen (gone - plz use gerrit)
lgtm
6 years ago (2014-12-09 15:47:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767353002/220001
6 years ago (2014-12-09 16:38:10 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/40342) ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/34807)
6 years ago (2014-12-09 16:47:48 UTC) #26
jww
cjhopman@chromium.org: Please review changes in build/ios/grit_whitelist.txt. Thanks!
6 years ago (2014-12-09 17:13:40 UTC) #28
cjhopman
lgtm
6 years ago (2014-12-09 19:23:25 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767353002/240001
6 years ago (2014-12-09 19:46:43 UTC) #31
commit-bot: I haz the power
Committed patchset #13 (id:240001)
6 years ago (2014-12-09 21:02:44 UTC) #32
commit-bot: I haz the power
6 years ago (2014-12-09 21:03:33 UTC) #33
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/1d7e800d82d104222425aba32e97e19a4edae324
Cr-Commit-Position: refs/heads/master@{#307549}

Powered by Google App Engine
This is Rietveld 408576698