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

Unified Diff: components/metrics/serialization/metric_sample.cc

Issue 644603002: Cleanup of component/metrics for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: source_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
« no previous file with comments | « components/metrics/serialization/metric_sample.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/serialization/metric_sample.cc
diff --git a/components/metrics/serialization/metric_sample.cc b/components/metrics/serialization/metric_sample.cc
index 5d7d1fc717bf620cfafb9c1705f2d436b59cba0d..107fc3e0d80f5a8b79432179fe2c2d27159419a0 100644
--- a/components/metrics/serialization/metric_sample.cc
+++ b/components/metrics/serialization/metric_sample.cc
@@ -74,25 +74,25 @@ std::string MetricSample::ToString() const {
}
}
-const int MetricSample::sample() const {
+int MetricSample::sample() const {
CHECK_NE(type_, USER_ACTION);
CHECK_NE(type_, CRASH);
return sample_;
}
-const int MetricSample::min() const {
+int MetricSample::min() const {
CHECK_EQ(type_, HISTOGRAM);
return min_;
}
-const int MetricSample::max() const {
+int MetricSample::max() const {
CHECK_NE(type_, CRASH);
CHECK_NE(type_, USER_ACTION);
CHECK_NE(type_, SPARSE_HISTOGRAM);
return max_;
}
-const int MetricSample::bucket_count() const {
+int MetricSample::bucket_count() const {
CHECK_EQ(type_, HISTOGRAM);
return bucket_count_;
}
« no previous file with comments | « components/metrics/serialization/metric_sample.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698