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

Unified Diff: components/metrics/metrics_provider.h

Issue 558653002: Allow MetricsProviders to request an initial stability log. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Address Alexei's comments. Created 6 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
« no previous file with comments | « no previous file | components/metrics/metrics_service.h » ('j') | components/metrics/metrics_service.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_provider.h
diff --git a/components/metrics/metrics_provider.h b/components/metrics/metrics_provider.h
index 001e66a42c6330f55a673840983bf24570454c97..510571f2c69888598d663d454338c5e6f57f3b04 100644
--- a/components/metrics/metrics_provider.h
+++ b/components/metrics/metrics_provider.h
@@ -33,6 +33,10 @@ class MetricsProvider {
virtual void ProvideSystemProfileMetrics(
SystemProfileProto* system_profile_proto) {}
+ // Called once at startup to see whether this provider has stability events
+ // to share.
+ virtual bool HasStabilityMetrics() { return false; }
+
// Provides additional stability metrics. Stability metrics can be provided
// directly into |stability_proto| fields or by logging stability histograms
// via the UMA_STABILITY_HISTOGRAM_ENUMERATION() macro.
« no previous file with comments | « no previous file | components/metrics/metrics_service.h » ('j') | components/metrics/metrics_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698