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

Unified Diff: chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc

Issue 10915318: Revert 157168 - Add guards to metric values; erase bad events/metrics from db (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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: chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc
===================================================================
--- chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc (revision 157181)
+++ chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc (working copy)
@@ -20,7 +20,6 @@
}
scoped_ptr<Database::MetricVector> AggregateMetric(
- MetricType type,
const Database::MetricVector* metrics,
const base::Time& start,
const base::TimeDelta& resolution) {
@@ -57,7 +56,7 @@
// at the end of the window.
integrated += metric_value * (window_end - last_sample_time).InSecondsF();
double average = integrated / resolution.InSecondsF();
- results->push_back(Metric(type, window_end, average));
+ results->push_back(Metric(window_end, average));
}
return results.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698