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

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: Rename, add params to rappor.xml 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..cc07e2f19c8079fe6af2aae7c2678542a4f30c89 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,9 @@ 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 by the full population of users.
+ bool always_enabled;
};
} // namespace rappor

Powered by Google App Engine
This is Rietveld 408576698