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

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

Issue 2870153002: [Payments] Record navigations that close the Payment Request as aborts. (Closed)
Patch Set: Created 3 years, 7 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.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);

Powered by Google App Engine
This is Rietveld 408576698