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

Unified Diff: components/metrics/metrics_service.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
Index: components/metrics/metrics_service.h
diff --git a/components/metrics/metrics_service.h b/components/metrics/metrics_service.h
index 7a9e08db84d73869ca00b4ec856d541f61be12fa..ef3d2aedfc9005d08b6906d0df61b78a06bb59e1 100644
--- a/components/metrics/metrics_service.h
+++ b/components/metrics/metrics_service.h
@@ -320,6 +320,10 @@ class MetricsService : public base::HistogramFlattener {
// (depending on |state_|), and stages it for upload.
void StageNewLog();
+ // Returns true if any of the registered metrics providers have stability
+ // metrics to report.
+ bool ProvidersHaveStabilityMetrics();
+
// Prepares the initial stability log, which is only logged when the previous
// run of Chrome crashed. This log contains any stability metrics left over
// from that previous run, and only these stability metrics. It uses the

Powered by Google App Engine
This is Rietveld 408576698