Chromium Code Reviews| 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..0992fd37632e5f6e893faefa51a1dd2da994a1f8 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_->OnDidSubmitForm(); |
| + credit_card_form_event_logger_->OnDidSubmitForm(); |
|
Evan Stade
2015/03/20 20:55:03
can we keep the names the same? i.e. OnFormSubmitt
Mathieu
2015/03/23 15:24:02
Sure, renamed OnDidSubmitForm to OnFormSubmitted.
|
| + |
| // Update Personal Data with the form's submitted data. |
| if (submitted_form->IsAutofillable()) |
| ImportFormData(*submitted_form); |