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

Side by Side Diff: components/payments/core/journey_logger.h

Issue 2810323002: [Payments] Add metric for when Pr UI is skipped. (Closed)
Patch Set: Use the BooleanSkipped enum Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ 5 #ifndef COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_
6 #define COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ 6 #define COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 COMPLETION_STATUS_MAX, 58 COMPLETION_STATUS_MAX,
59 }; 59 };
60 60
61 // Used to record the different events that happened during the Payment 61 // Used to record the different events that happened during the Payment
62 // Request. 62 // Request.
63 enum Event { 63 enum Event {
64 EVENT_INITIATED = 0, 64 EVENT_INITIATED = 0,
65 EVENT_SHOWN = 1 << 0, 65 EVENT_SHOWN = 1 << 0,
66 EVENT_PAY_CLICKED = 1 << 1, 66 EVENT_PAY_CLICKED = 1 << 1,
67 EVENT_RECEIVED_INSTRUMENT_DETAILS = 1 << 2, 67 EVENT_RECEIVED_INSTRUMENT_DETAILS = 1 << 2,
68 EVENT_MAX = 8, 68 EVENT_SKIPPED_SHOW = 1 << 3,
69 EVENT_MAX = 16,
69 }; 70 };
70 71
71 // Used to mesure the impact of the CanMakePayment return value on whether the 72 // Used to mesure the impact of the CanMakePayment return value on whether the
72 // Payment Request is shown to the user. 73 // Payment Request is shown to the user.
73 static const int CMP_SHOW_COULD_NOT_MAKE_PAYMENT_AND_DID_NOT_SHOW = 0; 74 static const int CMP_SHOW_COULD_NOT_MAKE_PAYMENT_AND_DID_NOT_SHOW = 0;
74 static const int CMP_SHOW_DID_SHOW = 1 << 0; 75 static const int CMP_SHOW_DID_SHOW = 1 << 0;
75 static const int CMP_SHOW_COULD_MAKE_PAYMENT = 1 << 1; 76 static const int CMP_SHOW_COULD_MAKE_PAYMENT = 1 << 1;
76 static const int CMP_SHOW_MAX = 4; 77 static const int CMP_SHOW_MAX = 4;
77 78
78 JourneyLogger(bool is_incognito, 79 JourneyLogger(bool is_incognito,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 169
169 // Not owned, will outlive this object. 170 // Not owned, will outlive this object.
170 ukm::UkmService* ukm_service_; 171 ukm::UkmService* ukm_service_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(JourneyLogger); 173 DISALLOW_COPY_AND_ASSIGN(JourneyLogger);
173 }; 174 };
174 175
175 } // namespace payments 176 } // namespace payments
176 177
177 #endif // COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ 178 #endif // COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_
OLDNEW
« no previous file with comments | « chrome/test/data/payments/payment_request_metrics_test.html ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698