| 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 b2a6e3a8c829ba0d2b545bed25b7100259035908..d9323c57865b9ab43243e8a7886fc9ad534b2ee3 100644
|
| --- a/components/autofill/core/browser/autofill_metrics.cc
|
| +++ b/components/autofill/core/browser/autofill_metrics.cc
|
| @@ -793,8 +793,7 @@ bool AutofillMetrics::LogUkm(
|
| const GURL& url,
|
| const std::string& ukm_entry_name,
|
| const std::vector<std::pair<const char*, int>>& metrics) {
|
| - if (!IsUkmLoggingEnabled() || !ukm_service || !url.is_valid() ||
|
| - metrics.empty()) {
|
| + if (!ukm_service || !url.is_valid() || metrics.empty()) {
|
| return false;
|
| }
|
|
|
| @@ -1035,7 +1034,7 @@ AutofillMetrics::FormInteractionsUkmLogger::FormInteractionsUkmLogger(
|
|
|
| void AutofillMetrics::FormInteractionsUkmLogger::OnFormsLoaded(
|
| const GURL& url) {
|
| - if (!IsUkmLoggingEnabled() || ukm_service_ == nullptr)
|
| + if (ukm_service_ == nullptr)
|
| return;
|
|
|
| url_ = url;
|
| @@ -1153,7 +1152,7 @@ void AutofillMetrics::FormInteractionsUkmLogger::UpdateSourceURL(
|
| }
|
|
|
| bool AutofillMetrics::FormInteractionsUkmLogger::CanLog() const {
|
| - return IsUkmLoggingEnabled() && ukm_service_ && url_.is_valid();
|
| + return ukm_service_ && url_.is_valid();
|
| }
|
|
|
| int64_t
|
|
|