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

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

Issue 2923243003: Merge-60 [Payments] Move the RequestedInformation metric to native. (Closed)
Patch Set: Created 3 years, 6 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.h
diff --git a/components/payments/core/journey_logger.h b/components/payments/core/journey_logger.h
index edb6eb18318b16ef6b883c72da0c817f75f31039..dd6cebd1e2c2b379fb8e1af35131ebe4879b73d2 100644
--- a/components/payments/core/journey_logger.h
+++ b/components/payments/core/journey_logger.h
@@ -168,6 +168,12 @@ class JourneyLogger {
// Records the payment method that was used to complete the Payment Request.
void SetSelectedPaymentMethod(SelectedPaymentMethod payment_method);
+ // Records the user information requested by the merchant.
+ void SetRequestedInformation(bool requested_shipping,
+ bool requested_email,
+ bool requested_phone,
+ bool requested_name);
+
// Records that the Payment Request was completed successfully, and starts the
// logging of all the journey metrics.
void SetCompleted();
@@ -222,6 +228,9 @@ class JourneyLogger {
// Records the metric about the selected payment method.
void RecordPaymentMethodMetric();
+ // Records the user information that the merchant requested.
+ void RecordRequestedInformationMetrics();
+
// Records the histograms for all the sections that were requested by the
// merchant.
void RecordSectionSpecificStats(CompletionStatus completion_status);
@@ -255,6 +264,9 @@ class JourneyLogger {
// To keep track of the selected payment method.
SelectedPaymentMethod payment_method_ = SELECTED_PAYMENT_METHOD_MAX;
+ // Keeps track of the user information requested by the merchant.
+ int requested_information_ = REQUESTED_INFORMATION_MAX;
+
const GURL url_;
// Not owned, will outlive this object.
« no previous file with comments | « chrome/browser/payments/android/journey_logger_android.cc ('k') | components/payments/core/journey_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698