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

Unified Diff: components/rappor/rappor_parameters.h

Issue 264123004: Modify rappor parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/rappor/rappor_parameters.h
diff --git a/components/rappor/rappor_parameters.h b/components/rappor/rappor_parameters.h
index 77b16146f608cde86001c8af669d1edf03e7979e..ca625ba4d8e3216969d5efe2b545aabb91878029 100644
--- a/components/rappor/rappor_parameters.h
+++ b/components/rappor/rappor_parameters.h
@@ -12,6 +12,7 @@ namespace rappor {
enum Probability {
PROBABILITY_75, // 75%
PROBABILITY_50, // 50%
+ PROBABILITY_25, // 25%
};
// An object describing a rappor metric and the parameters used to generate it.
@@ -22,6 +23,12 @@ struct RapporParameters {
// Get a string representing the parameters, for DCHECK_EQ.
std::string ToString() const;
+ // The maximum number of cohorts we divide clients into.
+ static const int kMaxCohorts;
+
+ // The number of cohorts to divide the reports for this metric into.
+ int num_cohorts;
+
// The number of bytes stored in the Bloom filter.
int bloom_filter_size_bytes;
// The number of hash functions used in the Bloom filter.

Powered by Google App Engine
This is Rietveld 408576698