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

Unified Diff: components/metrics/metrics_log_base.h

Issue 239093004: Move part of metrics from chrome/common to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding TBR section for owners of minor changes. Created 6 years, 8 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/metrics/metrics_log_base.h
diff --git a/chrome/common/metrics/metrics_log_base.h b/components/metrics/metrics_log_base.h
similarity index 92%
rename from chrome/common/metrics/metrics_log_base.h
rename to components/metrics/metrics_log_base.h
index f0124d83132a50b5b825c2b14bfcdca885c84477..30b3125ff668ef86cde0dce0ad77fbb17298f727 100644
--- a/chrome/common/metrics/metrics_log_base.h
+++ b/components/metrics/metrics_log_base.h
@@ -5,23 +5,22 @@
// This file defines a set of user experience metrics data recorded by
// the MetricsService. This is the unit of data that is sent to the server.
-#ifndef CHROME_COMMON_METRICS_METRICS_LOG_BASE_H_
-#define CHROME_COMMON_METRICS_METRICS_LOG_BASE_H_
+#ifndef COMPONENTS_METRICS_METRICS_LOG_BASE_H_
+#define COMPONENTS_METRICS_METRICS_LOG_BASE_H_
#include <string>
#include "base/basictypes.h"
#include "base/metrics/histogram.h"
#include "base/time/time.h"
-#include "chrome/common/metrics/proto/chrome_user_metrics_extension.pb.h"
-#include "content/public/common/page_transition_types.h"
-
-class GURL;
+#include "components/metrics/proto/chrome_user_metrics_extension.pb.h"
namespace base {
class HistogramSamples;
} // namespace base
+namespace metrics {
+
// This class provides base functionality for logging metrics data.
class MetricsLogBase {
public:
@@ -106,4 +105,6 @@ class MetricsLogBase {
DISALLOW_COPY_AND_ASSIGN(MetricsLogBase);
};
-#endif // CHROME_COMMON_METRICS_METRICS_LOG_BASE_H_
+} // namespace metrics
+
+#endif // COMPONENTS_METRICS_METRICS_LOG_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698