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

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

Issue 2180373003: Adding reporting of metrics sampling rate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding reporting of sampling rate. Created 4 years, 5 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/sampling_metrics_provider.h
diff --git a/chrome/browser/metrics/sampling_metrics_provider.h b/chrome/browser/metrics/sampling_metrics_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..eccefd676796984852ecf117708c692e8d59a0f9
--- /dev/null
+++ b/chrome/browser/metrics/sampling_metrics_provider.h
@@ -0,0 +1,24 @@
+// Copyright 2016 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.
+
+#ifndef CHROME_BROWSER_METRICS_SAMPLING_METRICS_PROVIDER_H_
+#define CHROME_BROWSER_METRICS_SAMPLING_METRICS_PROVIDER_H_
+
+#include "components/metrics/metrics_provider.h"
+
+namespace metrics {
Alexei Svitkine (slow) 2016/08/01 15:49:56 Nit: Add an empty line.
jwd 2016/08/01 16:45:29 Done.
+class SamplingMetricsProvider : public MetricsProvider {
+ public:
+ SamplingMetricsProvider();
+ ~SamplingMetricsProvider() override;
+
+ // MetricsProvider:
Alexei Svitkine (slow) 2016/08/01 15:49:56 Add private: before this.
jwd 2016/08/01 16:45:29 Done.
+ void ProvideGeneralMetrics(ChromeUserMetricsExtension* uma_proto) override;
+
+ DISALLOW_COPY_AND_ASSIGN(SamplingMetricsProvider);
+};
+
+} // namespace metrics
+
+#endif // CHROME_BROWSER_METRICS_SAMPLING_METRICS_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698