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

Unified Diff: chrome/browser/metrics/metrics_services_manager.h

Issue 886523003: Add a Rappor option in the settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chrome/browser/metrics/metrics_services_manager.h
diff --git a/chrome/browser/metrics/metrics_services_manager.h b/chrome/browser/metrics/metrics_services_manager.h
index b0f2670bacc9ed9fb3002c2f99fb914b95b4dc17..5e78932736690f94fb67694a1bdbf049f1d2a562 100644
--- a/chrome/browser/metrics/metrics_services_manager.h
+++ b/chrome/browser/metrics/metrics_services_manager.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
+#include "components/rappor/rappor_service.h"
class ChromeMetricsServiceClient;
class PrefService;
@@ -58,6 +59,12 @@ class MetricsServicesManager {
// Returns true iff metrics reporting is enabled.
bool IsMetricsReportingEnabled() const;
+ // Returns true iff Rappor reporting is enabled.
+ bool IsRapporEnabled(bool metrics_enabled) const;
+
+ // Returns the recording level for Rappor metrics.
+ rappor::RecordingLevel GetRapporRecordingLevel(bool metrics_enabled) const;
+
private:
// Returns the ChromeMetricsServiceClient, creating it if it hasn't been
// created yet (and additionally creating the MetricsService in that case).

Powered by Google App Engine
This is Rietveld 408576698