| Index: components/autofill/core/browser/form_structure.cc
|
| diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
|
| index 02e861fe9c2a9a7076100f8dc5cd20968a3c1d6b..af3c797cb27317bbadb1695bdd7e2495bffadc21 100644
|
| --- a/components/autofill/core/browser/form_structure.cc
|
| +++ b/components/autofill/core/browser/form_structure.cc
|
| @@ -36,6 +36,7 @@
|
| #include "components/autofill/core/common/signatures_util.h"
|
| #include "components/rappor/public/rappor_utils.h"
|
| #include "components/rappor/rappor_service_impl.h"
|
| +#include "components/ukm/ukm_service.h"
|
|
|
| namespace autofill {
|
| namespace {
|
| @@ -332,7 +333,8 @@ FormStructure::FormStructure(const FormData& form)
|
|
|
| FormStructure::~FormStructure() {}
|
|
|
| -void FormStructure::DetermineHeuristicTypes() {
|
| +void FormStructure::DetermineHeuristicTypes(ukm::UkmService* ukm_service,
|
| + const GURL& url) {
|
| const auto determine_heuristic_types_start_time = base::TimeTicks::Now();
|
|
|
| // First, try to detect field types based on each field's |autocomplete|
|
| @@ -360,9 +362,13 @@ void FormStructure::DetermineHeuristicTypes() {
|
| if (IsAutofillable()) {
|
| AutofillMetrics::LogDeveloperEngagementMetric(
|
| AutofillMetrics::FILLABLE_FORM_PARSED);
|
| + AutofillMetrics::LogDeveloperEngagementUkm(
|
| + ukm_service, url, AutofillMetrics::FILLABLE_FORM_PARSED);
|
| if (has_author_specified_types_) {
|
| AutofillMetrics::LogDeveloperEngagementMetric(
|
| AutofillMetrics::FILLABLE_FORM_CONTAINS_TYPE_HINTS);
|
| + AutofillMetrics::LogDeveloperEngagementUkm(
|
| + ukm_service, url, AutofillMetrics::FILLABLE_FORM_CONTAINS_TYPE_HINTS);
|
| }
|
| }
|
|
|
|
|