| Index: components/autofill/core/browser/autofill_metrics.cc
|
| diff --git a/components/autofill/core/browser/autofill_metrics.cc b/components/autofill/core/browser/autofill_metrics.cc
|
| index bb0cac81f67629473b4d857d929317467d220e6d..2f9c996895b6c5782f5a76999f239e3310e90876 100644
|
| --- a/components/autofill/core/browser/autofill_metrics.cc
|
| +++ b/components/autofill/core/browser/autofill_metrics.cc
|
| @@ -1141,8 +1141,11 @@ void AutofillMetrics::FormInteractionsUkmLogger::LogFormSubmitted(
|
| source_id_, internal::kUKMFormSubmittedEntryName);
|
| builder->AddMetric(internal::kUKMAutofillFormSubmittedStateMetricName,
|
| static_cast<int>(state));
|
| - builder->AddMetric(internal::kUKMMillisecondsSinceFormParsedMetricName,
|
| - MillisecondsSinceFormParsed());
|
| + if (form_parsed_timestamp_.is_null())
|
| + DCHECK_EQ(state, NON_FILLABLE_FORM_OR_NEW_DATA);
|
| + else
|
| + builder->AddMetric(internal::kUKMMillisecondsSinceFormParsedMetricName,
|
| + MillisecondsSinceFormParsed());
|
| }
|
|
|
| void AutofillMetrics::FormInteractionsUkmLogger::UpdateSourceURL(
|
|
|