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

Unified Diff: components/rappor/rappor_parameters.h

Issue 509203002: Create a mechanism for reporting rappor metrics from non-UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: components/rappor/rappor_parameters.h
diff --git a/components/rappor/rappor_parameters.h b/components/rappor/rappor_parameters.h
index ca625ba4d8e3216969d5efe2b545aabb91878029..7078bcfaa50d71321d645190bcb8b43dacbc16a6 100644
--- a/components/rappor/rappor_parameters.h
+++ b/components/rappor/rappor_parameters.h
@@ -27,6 +27,8 @@ struct RapporParameters {
static const int kMaxCohorts;
// The number of cohorts to divide the reports for this metric into.
+ // This should divide kMaxCohorts evenly so that each cohort has an equal
+ // probability of being assigned users.
int num_cohorts;
// The number of bytes stored in the Bloom filter.
@@ -43,6 +45,10 @@ struct RapporParameters {
Probability one_coin_prob;
// The probability that a zero bit in the redacted data reports as one.
Probability zero_coin_prob;
+
+ // When true, this metric will be reported even when most rappor metric
+ // reporting is disabled.
+ bool always_enabled;
};
} // namespace rappor

Powered by Google App Engine
This is Rietveld 408576698