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

Unified Diff: chrome/browser/performance_monitor/metric.cc

Issue 10874041: Refactor Metrics (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 4 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 | « chrome/browser/performance_monitor/metric.h ('k') | chrome/browser/performance_monitor/metric_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/performance_monitor/metric.cc
diff --git a/chrome/browser/performance_monitor/metric_info.cc b/chrome/browser/performance_monitor/metric.cc
similarity index 59%
rename from chrome/browser/performance_monitor/metric_info.cc
rename to chrome/browser/performance_monitor/metric.cc
index 79ed181248fc60e8d9e571e91331539ecfce252b..4d105f768c70d30b6e143b2bad73e2eb16a17f0c 100644
--- a/chrome/browser/performance_monitor/metric_info.cc
+++ b/chrome/browser/performance_monitor/metric.cc
@@ -2,31 +2,30 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/performance_monitor/metric_info.h"
+#include "chrome/browser/performance_monitor/metric.h"
#include "base/logging.h"
#include "base/string_number_conversions.h"
namespace performance_monitor {
-MetricInfo::MetricInfo() {
+Metric::Metric() {
value = 0.0;
}
-MetricInfo::MetricInfo(const base::Time& metric_time, double metric_value)
- : time(metric_time),
- value(metric_value) {
+Metric::Metric(const base::Time& metric_time, const double metric_value)
+ : time(metric_time), value(metric_value) {
}
-MetricInfo::MetricInfo(const std::string& metric_time,
- const std::string& metric_value) {
+Metric::Metric(const std::string& metric_time,
+ const std::string& metric_value) {
int64 conversion = 0;
base::StringToInt64(metric_time, &conversion);
time = base::Time::FromInternalValue(conversion);
CHECK(base::StringToDouble(metric_value, &value));
}
-MetricInfo::~MetricInfo() {
+Metric::~Metric() {
}
} // namespace performance_monitor
« no previous file with comments | « chrome/browser/performance_monitor/metric.h ('k') | chrome/browser/performance_monitor/metric_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698