Chromium Code Reviews| Index: components/payments/core/journey_logger.cc |
| diff --git a/components/payments/core/journey_logger.cc b/components/payments/core/journey_logger.cc |
| index 11665b770cd09012252f156e45b1e64bf866dc45..fd28f68fe787863db6850a6473f8efe232707574 100644 |
| --- a/components/payments/core/journey_logger.cc |
| +++ b/components/payments/core/journey_logger.cc |
| @@ -110,7 +110,8 @@ void JourneyLogger::SetEventOccurred(Event event) { |
| void JourneyLogger::RecordJourneyStatsHistograms( |
| CompletionStatus completion_status) { |
| - DCHECK(!has_recorded_); |
| + if (has_recorded_) |
|
Mathieu
2017/05/09 18:12:19
We should enforce this better, so I agree with the
sebsg
2017/05/10 14:58:48
My fear is that we'll be missing some logs. With t
Mathieu
2017/05/10 17:04:20
In the destructor we could add a DCHECK(has_record
sebsg
2017/05/10 18:20:26
Sure, I understand that, it's a good point so I ha
|
| + return; |
| has_recorded_ = true; |
| RecordSectionSpecificStats(completion_status); |