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

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: 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..681841d205ea987fdee5845eec3e3d8c90b023c0 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 the previous run of Chrome crashed, or if any of the
+ // registered metrics providers return true from HasStabilityMetrics.
+ bool ShouldPrepareStabilityLog();
+
// 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