commit | 05d3d06f0fcbc8d90c5ba2270ea62daccdf371db | [log] [tgz] |
---|---|---|
author | Bettina Dea <[email protected]> | Thu Oct 08 21:26:33 2020 |
committer | Commit Bot <[email protected]> | Thu Oct 08 21:26:33 2020 |
tree | cfcac91b137cad1a7c68ae950f9d156024b061d6 | |
parent | eb3ad8f698fbac34c3ac919fb127b2b78e8fc4a4 [diff] |
[M87]Count ImpressionUntilAction using Linear Histogram. (cherry picked from commit c238fd2e0b93542d26b786f825f79c891cda0fba) [email protected] Bug: 1135838 Change-Id: Ie1c0b2e6c866282b5233edf2b8fbe513d7f2d1ce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454730 Reviewed-by: Xinghui Lu <[email protected]> Commit-Queue: Bettina Dea <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#814526} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461211 Reviewed-by: Bettina Dea <[email protected]> Cr-Commit-Position: refs/branch-heads/4280@{#165} Cr-Branched-From: ea420fb963f9658c9969b6513c56b8f47efa1a2a-refs/heads/master@{#812852}
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/promo/enhanced_protection/EnhancedProtectionPromoUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/promo/enhanced_protection/EnhancedProtectionPromoUtils.java index 72f00f4..bb8ea3c 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/promo/enhanced_protection/EnhancedProtectionPromoUtils.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/promo/enhanced_protection/EnhancedProtectionPromoUtils.java
@@ -95,8 +95,9 @@ SharedPreferencesManager.getInstance().writeInt(timesSeenKey, timesSeen + 1); } else if (action == EnhancedProtectionPromoAction.ACCEPTED) { RecordUserAction.record("NewTabPage.Promo.EnhancedProtectionPromo.Accepted"); - RecordHistogram.recordCountHistogram( - "NewTabPage.Promo.EnhancedProtectionPromo.ImpressionUntilAction", timesSeen); + RecordHistogram.recordLinearCountHistogram( + "NewTabPage.Promo.EnhancedProtectionPromo.ImpressionUntilAction", timesSeen, 1, + MAX_IMPRESSION_SEEN, MAX_IMPRESSION_SEEN + 1); } else if (action == EnhancedProtectionPromoAction.DISMISSED) { RecordUserAction.record("NewTabPage.Promo.EnhancedProtectionPromo.Dismissed"); RecordHistogram.recordLinearCountHistogram(