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 efda7d3cf91490ceb1242a884e301d2c7b13310e..3788b0fb51a2f4241ed1684faf0a5ccef4f6d3bd 100644 |
--- a/components/password_manager/core/browser/password_form_manager.h |
+++ b/components/password_manager/core/browser/password_form_manager.h |
@@ -251,8 +251,10 @@ class PasswordFormManager : public PasswordStoreConsumer { |
// Check to see if |pending| corresponds to an account creation form. If we |
// think that it does, we label it as such and upload this state to the |
// Autofill server, so that we will trigger password generation in the future. |
- void CheckForAccountCreationForm(const autofill::PasswordForm& pending, |
- const autofill::PasswordForm& observed); |
+ // This function will update generation_upload_status of |pending| if an |
+ // upload is performed. |
+ void CheckForAccountCreationForm(const autofill::PasswordForm& observed, |
+ autofill::PasswordForm* pending); |
// Update all login matches to reflect new preferred state - preferred flag |
// will be reset on all matched logins that different than the current |
@@ -277,10 +279,10 @@ class PasswordFormManager : public PasswordStoreConsumer { |
// duplicates. |
void SanitizePossibleUsernames(autofill::PasswordForm* form); |
- // Helper function to delegate uploading to the AutofillManager. |
- virtual void UploadPasswordForm( |
- const autofill::FormData& form_data, |
- const autofill::ServerFieldType& password_type); |
+ // Helper function to delegate uploading to the AutofillManager. Returns true |
+ // on success. |
+ bool UploadPasswordForm(const autofill::FormData& form_data, |
+ const autofill::ServerFieldType& password_type); |
// Set of PasswordForms from the DB that best match the form |
// being managed by this. Use a map instead of vector, because we most |