| Index: components/autofill/core/browser/autofill_manager.cc
|
| diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
|
| index 0ccf7d90feb92c60ca7d0ad4e271d7536f116b81..099cc6361ecabca5085d76efe5bcbf3491db47b1 100644
|
| --- a/components/autofill/core/browser/autofill_manager.cc
|
| +++ b/components/autofill/core/browser/autofill_manager.cc
|
| @@ -328,8 +328,8 @@ bool AutofillManager::OnWillSubmitForm(const FormData& form,
|
| if (!submitted_form)
|
| return false;
|
|
|
| - address_form_event_logger_->OnDidSubmitForm();
|
| - credit_card_form_event_logger_->OnDidSubmitForm();
|
| + address_form_event_logger_->OnWillSubmitForm();
|
| + credit_card_form_event_logger_->OnWillSubmitForm();
|
|
|
| // Only upload server statistics and UMA metrics if at least some local data
|
| // is available to use as a baseline.
|
| @@ -389,6 +389,9 @@ bool AutofillManager::OnFormSubmitted(const FormData& form) {
|
| if (!submitted_form)
|
| return false;
|
|
|
| + address_form_event_logger_->OnFormSubmitted();
|
| + credit_card_form_event_logger_->OnFormSubmitted();
|
| +
|
| // Update Personal Data with the form's submitted data.
|
| if (submitted_form->IsAutofillable())
|
| ImportFormData(*submitted_form);
|
|
|