Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Unified Diff: components/payments/core/journey_logger.cc

Issue 2888633002: Revert of [Autofill] Enable Autofill UKM by default. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/payments/core/journey_logger.cc
diff --git a/components/payments/core/journey_logger.cc b/components/payments/core/journey_logger.cc
index 6ced0eb5ef8e72b28c9ccdf2af5f31923de3c01c..11665b770cd09012252f156e45b1e64bf866dc45 100644
--- a/components/payments/core/journey_logger.cc
+++ b/components/payments/core/journey_logger.cc
@@ -8,6 +8,7 @@
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
+#include "components/autofill/core/browser/autofill_experiments.h"
#include "components/ukm/ukm_entry_builder.h"
#include "components/ukm/ukm_service.h"
@@ -220,7 +221,7 @@
}
void JourneyLogger::RecordUrlKeyedMetrics(CompletionStatus completion_status) {
- if (!ukm_service_ || !url_.is_valid())
+ if (!autofill::IsUkmLoggingEnabled() || !ukm_service_ || !url_.is_valid())
return;
// Record the Checkout Funnel UKM.
« no previous file with comments | « components/autofill/core/browser/autofill_metrics_unittest.cc ('k') | components/payments/core/journey_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698