| Index: components/payments/content/payment_request.cc
|
| diff --git a/components/payments/content/payment_request.cc b/components/payments/content/payment_request.cc
|
| index 9e8950018cae22684c9d4d5bfb21a303f2d2b177..852d877f889932c288f0aa0fff98927d9600cc65 100644
|
| --- a/components/payments/content/payment_request.cc
|
| +++ b/components/payments/content/payment_request.cc
|
| @@ -174,8 +174,7 @@ void PaymentRequest::Complete(mojom::PaymentComplete result) {
|
| if (result != mojom::PaymentComplete::SUCCESS) {
|
| delegate_->ShowErrorMessage();
|
| } else {
|
| - journey_logger_.RecordJourneyStatsHistograms(
|
| - JourneyLogger::COMPLETION_STATUS_COMPLETED);
|
| + journey_logger_.SetCompleted();
|
| delegate_->GetPrefService()->SetBoolean(kPaymentsFirstTransactionCompleted,
|
| true);
|
| // When the renderer closes the connection,
|
| @@ -276,7 +275,12 @@ void PaymentRequest::RecordFirstCompletionStatus(
|
| JourneyLogger::CompletionStatus completion_status) {
|
| if (!has_recorded_abort_reason_) {
|
| has_recorded_abort_reason_ = true;
|
| - journey_logger_.RecordJourneyStatsHistograms(completion_status);
|
| + // TODO(crbug.com/716546): Record more abort reasons.
|
| + if (completion_status == JourneyLogger::COMPLETION_STATUS_USER_ABORTED) {
|
| + journey_logger_.SetAborted(JourneyLogger::ABORT_REASON_ABORTED_BY_USER);
|
| + } else {
|
| + journey_logger_.SetAborted(JourneyLogger::ABORT_REASON_OTHER);
|
| + }
|
| }
|
| }
|
|
|
|
|