Chromium Code Reviews| Index: chrome/browser/metrics/metrics_service_accessor.h |
| diff --git a/chrome/browser/metrics/metrics_service_accessor.h b/chrome/browser/metrics/metrics_service_accessor.h |
| index 26ce88e7dee4818947d263edf76809fc339dd0f5..d621c376cc6b72a7224fe5ee7252151750eda631 100644 |
| --- a/chrome/browser/metrics/metrics_service_accessor.h |
| +++ b/chrome/browser/metrics/metrics_service_accessor.h |
| @@ -5,8 +5,11 @@ |
| #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_ACCESSOR_H_ |
| #define CHROME_BROWSER_METRICS_METRICS_SERVICE_ACCESSOR_H_ |
| +#include <string> |
| + |
| #include "base/macros.h" |
| +class MetricsService; |
| class MetricsServiceObserver; |
| // This class limits and documents access to metrics service helper methods. |
| @@ -23,6 +26,17 @@ class MetricsServiceAccessor { |
| static void AddMetricsServiceObserver(MetricsServiceObserver* observer); |
| static void RemoveMetricsServiceObserver(MetricsServiceObserver* observer); |
| + // Registers a field trial name and group to be used to annotate a UMA report |
| + // with a particular Chrome configuration state. A UMA report will be |
| + // annotated with this trial group if and only if all events in the report |
| + // were created after the trial is registered. Only one group name may be |
| + // registered at a time for a given trial name. Only the last group name that |
| + // is registered for a given trial name will be recorded. The values passed |
| + // in must not correspond to any real field trial in the code. |
| + static bool RegisterSyntheticFieldTrial(MetricsService* metrics_service, |
| + const std::string& trial, |
|
Alexei Svitkine (slow)
2014/07/30 21:33:31
Nit: Align params.
megjablon
2014/07/30 21:42:51
Done.
|
| + const std::string& group); |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MetricsServiceAccessor); |
| }; |