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

Unified Diff: chrome/browser/performance_monitor/performance_monitor.h

Issue 10907121: Add guards to metric values; erase bad events/metrics from db (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_use_units
Patch Set: Eriq's requests 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/performance_monitor/performance_monitor.h
diff --git a/chrome/browser/performance_monitor/performance_monitor.h b/chrome/browser/performance_monitor/performance_monitor.h
index a51253c11829b26a101b3007996e2157b82bd9ce..0dd1ddab32d845f7c02079bd6f427c52e49a7d1d 100644
--- a/chrome/browser/performance_monitor/performance_monitor.h
+++ b/chrome/browser/performance_monitor/performance_monitor.h
@@ -131,8 +131,9 @@ class PerformanceMonitor : public content::NotificationObserver {
void AddEventOnBackgroundThread(scoped_ptr<Event> event);
// Since Database::AddMetric() is overloaded, base::Bind() does not work and
- // we need a helper function.
- void AddMetricOnBackgroundThread(MetricType type, const std::string& value);
+ // we need a helper function. Deliberately not const & so that we will
+ // construct a new metric on the background thread.
Yoyo Zhou 2012/09/10 23:52:44 I'm not sure this does what you think. You are sti
Devlin 2012/09/11 18:52:17 I was modeling this after the io_data one. In that
Yoyo Zhou 2012/09/13 00:09:20 On reviewing the documentation in callback.h, this
+ void AddMetricOnBackgroundThread(Metric metric);
// Notify any listeners that PerformanceMonitor has finished the initializing.
void NotifyInitialized();

Powered by Google App Engine
This is Rietveld 408576698