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

Unified Diff: components/rappor/rappor_registry.cc

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rappor Registry Created 6 years, 11 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_registry.cc
diff --git a/components/rappor/rappor_registry.cc b/components/rappor/rappor_registry.cc
new file mode 100644
index 0000000000000000000000000000000000000000..af36d9e312371fe1dfd14f61026a0110d37226a8
--- /dev/null
+++ b/components/rappor/rappor_registry.cc
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/rappor/rappor_registry.h"
+
+#include "components/rappor/rappor_parameters.h"
+
+namespace rappor {
+
+extern const RapporParameters g_rappor_registry[NUM_RAPPOR_REGISTRY_ENTRIES] = {
+ { // HOME_PAGE_RAPPOR
+ "Settings.HomePage" /* Metric name */,
Alexei Svitkine (slow) 2014/02/04 19:20:12 This wasn't quite what I meant. I think the name
Steven Holte 2014/02/04 21:41:21 Split name and parameters. PTAL.
+ 16 /* Bloom filter size bytes */,
+ 2 /* Bloom filter hash count */,
+ rappor::PROBABILITY_75 /* Fake data probability */,
+ rappor::PROBABILITY_50 /* Fake one probability */,
+ rappor::PROBABILITY_75 /* One coin probability */,
+ rappor::PROBABILITY_50 /* Zero coin probability */
+ },
+};
+
+} // namespace rappor

Powered by Google App Engine
This is Rietveld 408576698