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

Unified Diff: components/rappor/rappor_service.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: 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_service.h
diff --git a/components/rappor/rappor_service.h b/components/rappor/rappor_service.h
index b48c31c4453c8b144219fde545a755216c6e91f2..28a0a2f211ddf80e46e7328767e6b7790a304789 100644
--- a/components/rappor/rappor_service.h
+++ b/components/rappor/rappor_service.h
@@ -32,6 +32,7 @@ struct RapporParameters;
enum RapporType {
// For sampling the eTLD+1 of a URL.
ETLD_PLUS_ONE_RAPPOR_TYPE = 0,
+ SAFE_BROWSING_PATTERN_RAPPOR_TYPE,
NUM_RAPPOR_TYPES
};
@@ -121,6 +122,9 @@ class RapporService {
// A private LogUploader instance for sending reports to the server.
scoped_ptr<LogUploader> uploader_;
+ // True if we are collecting all metrics instead of only whitelisted ones.
+ bool all_metrics_enabled_;
Alexei Svitkine (slow) 2014/10/03 20:28:50 You need to initialize this in the ctor.
Steven Holte 2014/10/03 21:41:11 Done.
+
// We keep all registered metrics in a map, from name to metric.
// The map owns the metrics it contains.
std::map<std::string, RapporMetric*> metrics_map_;

Powered by Google App Engine
This is Rietveld 408576698