#include "components/facilitated_payments/core/metrics/facilitated_payments_metrics.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/strcat.h"
#include "base/time/time.h"
#include "services/metrics/public/cpp/ukm_builders.h"
namespace payments::facilitated {
void LogIsApiAvailableResult(bool result, base::TimeDelta duration) { … }
void LogLoadRiskDataResultAndLatency(bool was_successful,
base::TimeDelta duration) { … }
void LogGetClientTokenResult(bool result, base::TimeDelta duration) { … }
void LogPaymentNotOfferedReason(PaymentNotOfferedReason reason) { … }
void LogInitiatePaymentResult(bool result, base::TimeDelta duration) { … }
void LogInitiatePurchaseActionResult(bool result, base::TimeDelta duration) { … }
void LogFopSelectorShown(bool shown) { … }
void LogTransactionResult(TransactionResult result,
TriggerSource trigger_source,
base::TimeDelta duration,
ukm::SourceId ukm_source_id) { … }
}