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

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: Clear old pref 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
« no previous file with comments | « components/rappor/rappor_metric_unittest.cc ('k') | components/rappor/rappor_parameters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/rappor_parameters.h
diff --git a/components/rappor/rappor_parameters.h b/components/rappor/rappor_parameters.h
index 77b16146f608cde86001c8af669d1edf03e7979e..d719a600cc3aba3553f856c7acffb29429fdcb29 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,11 @@ 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.
Alexei Svitkine (slow) 2014/05/22 13:17:11 Nit: Empty line before this please.
Steven Holte 2014/05/23 21:54:05 Done.
+ 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.
« no previous file with comments | « components/rappor/rappor_metric_unittest.cc ('k') | components/rappor/rappor_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698