OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/metrics/chromeos/metric_sample.h" | 5 #include "components/metrics/serialization/metric_sample.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 | 14 |
15 namespace metrics { | 15 namespace metrics { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 new MetricSample(USER_ACTION, action_name, 0, 0, 0, 0)); | 188 new MetricSample(USER_ACTION, action_name, 0, 0, 0, 0)); |
189 } | 189 } |
190 | 190 |
191 bool MetricSample::IsEqual(const MetricSample& metric) { | 191 bool MetricSample::IsEqual(const MetricSample& metric) { |
192 return type_ == metric.type_ && name_ == metric.name_ && | 192 return type_ == metric.type_ && name_ == metric.name_ && |
193 sample_ == metric.sample_ && min_ == metric.min_ && | 193 sample_ == metric.sample_ && min_ == metric.min_ && |
194 max_ == metric.max_ && bucket_count_ == metric.bucket_count_; | 194 max_ == metric.max_ && bucket_count_ == metric.bucket_count_; |
195 } | 195 } |
196 | 196 |
197 } // namespace metrics | 197 } // namespace metrics |
OLD | NEW |