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

Unified Diff: components/rappor/rappor_parameters.cc

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.cc
diff --git a/components/rappor/rappor_parameters.cc b/components/rappor/rappor_parameters.cc
index ede7636661e873e2ada2a3f621e5615b88a7b8c5..ae5b7ba5311749e470641ff4c40cb800f5450178 100644
--- a/components/rappor/rappor_parameters.cc
+++ b/components/rappor/rappor_parameters.cc
@@ -4,12 +4,14 @@
#include "components/rappor/rappor_parameters.h"
+#include "base/compiler_specific.h"
#include "base/strings/stringprintf.h"
namespace rappor {
std::string RapporParameters::ToString() const {
- return base::StringPrintf("{ %d, %d, %d, %d, %d, %d }",
+ return base::StringPrintf("{ %d, %d, %d, %d, %d, %d, %d }",
+ num_cohorts,
bloom_filter_size_bytes,
bloom_filter_hash_function_count,
fake_prob,
@@ -18,4 +20,6 @@ std::string RapporParameters::ToString() const {
zero_coin_prob);
}
+const int RapporParameters::kMaxCohorts = 512;
+
} // namespace rappor

Powered by Google App Engine
This is Rietveld 408576698