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
Review URL: https://codereview.chromium.org/767353002
Cr-Commit-Position: refs/heads/master@{#307549}
diff --git a/components/autofill_strings.grdp b/components/autofill_strings.grdp
index bb95163..b0352f9d 100644
--- a/components/autofill_strings.grdp
+++ b/components/autofill_strings.grdp
@@ -128,4 +128,8 @@
Scan new card
</message>
+ <message name="IDS_AUTOFILL_PASSWORD_FIELD_SUGGESTIONS_TITLE" desc="Text shown as the title of the suggestion drop down when a password field is clicked.">
+ Use password for:
+ </message>
+
</grit-part>