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

Side by Side Diff: components/metrics/serialization/metric_sample.cc

Issue 394093003: Moves components/metrics/chromeos to c/m/serialization/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added os=="linux" GYP guards Created 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/metrics/serialization/metric_sample.h ('k') | components/metrics/serialization/serialization_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698