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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLogger.java

Issue 2455513004: [Payments] Fix the Payment Request histogram check failure in tests. (Closed)
Patch Set: Addressed comments Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLoggerTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLogger.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLogger.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLogger.java
index 8b1c621aff4081c87d67db629d97bf83a3439269..999189858396d0e45268e8b9eaf38ba0f1418fb7 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLogger.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLogger.java
@@ -15,7 +15,9 @@ public class PaymentRequestJourneyLogger {
public static final int SECTION_SHIPPING_ADDRESS = 2;
public static final int SECTION_MAX = 3;
- private static final int MIN_EXPECTED_SAMPLE = 0;
+ // The minimum expected value of CustomCountHistograms is always set to 1. It is still possible
+ // to log the value 0 to that type of histogram.
+ private static final int MIN_EXPECTED_SAMPLE = 1;
private static final int MAX_EXPECTED_SAMPLE = 49;
private static final int NUMBER_BUCKETS = 50;
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestJourneyLoggerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698