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

Unified Diff: components/password_manager/core/browser/password_form_manager.h

Issue 2637823002: [Password Generation] Send votes about confirmation fields (Closed)
Patch Set: Fixed comment to |confirmation_password_element| Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/password_form_manager.h
diff --git a/components/password_manager/core/browser/password_form_manager.h b/components/password_manager/core/browser/password_form_manager.h
index 6f599b6e7a1245e6f6ede01a61cd74cdcdacbb6d..7b312eb45024bce65daddc5bb9a505d7068cc507 100644
--- a/components/password_manager/core/browser/password_form_manager.h
+++ b/components/password_manager/core/browser/password_form_manager.h
@@ -33,6 +33,9 @@ class FormSaver;
class PasswordManager;
class PasswordManagerClient;
+// A map from field names to field types.
+using FieldTypeMap = std::map<base::string16, autofill::ServerFieldType>;
+
// This class helps with filling the observed form (both HTML and from HTTP
// auth) and with saving/updating the stored information about it.
class PasswordFormManager : public FormFetcher::Consumer {
@@ -369,8 +372,7 @@ class PasswordFormManager : public FormFetcher::Consumer {
// Tries to set all votes (e.g. autofill field types, generation vote) to
// a |FormStructure| and upload it to the server. Returns true on success.
- bool UploadPasswordVote(const base::string16& username_field,
- const autofill::ServerFieldType& password_type,
+ bool UploadPasswordVote(const autofill::ServerFieldType& password_type,
const std::string& login_form_signature);
// Adds a vote on password generation usage to |form_structure|.
@@ -422,26 +424,6 @@ class PasswordFormManager : public FormFetcher::Consumer {
base::Optional<autofill::PasswordForm> UpdatePendingAndGetOldKey(
std::vector<autofill::PasswordForm>* credentials_to_update);
- // Sets autofill types of username, password and new password fields in
- // |form_structure|. |password_type| (the autofill type of new password field)
- // should be equal to NEW_PASSWORD, PROBABLY_NEW_PASSWORD or NOT_NEW_PASSWORD.
- // These values correspond to cases when the user confirmed password update,
- // did nothing or declined to update password respectively. The function also
- // add the types to |available_field_types|.
- void SetAutofillTypesOnUpdate(
- const autofill::ServerFieldType password_type,
- FormStructure* form_structure,
- autofill::ServerFieldTypeSet* available_field_types);
-
- // Sets autofill types of username and password fields in |form_structure|.
- // |username_field| determines the name of the username field. The function
- // also add the types to |available_field_types|.
- void SetAutofillTypesOnSave(
- const base::string16& username_field,
- const autofill::ServerFieldType password_type,
- FormStructure* form_structure,
- autofill::ServerFieldTypeSet* available_field_types);
-
// Set of nonblacklisted PasswordForms from the DB that best match the form
// being managed by |this|, indexed by username. They are owned by
// |form_fetcher_|.
« no previous file with comments | « components/autofill/core/common/password_form.h ('k') | components/password_manager/core/browser/password_form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698