Index: components/metrics/metrics_log.h |
diff --git a/components/metrics/metrics_log.h b/components/metrics/metrics_log.h |
index 441cfbc26a0e6709aed40e8a63c6d493868e8f07..688a624a841036c5359e6b7308189c572a879909 100644 |
--- a/components/metrics/metrics_log.h |
+++ b/components/metrics/metrics_log.h |
@@ -44,6 +44,7 @@ class MetricsLog { |
enum LogType { |
INITIAL_STABILITY_LOG, // The initial log containing stability stats. |
ONGOING_LOG, // Subsequent logs in a session. |
+ INDEPENDENT_LOG, // An independent log from a previous session. |
}; |
// Creates a new metrics log of the specified type. |
@@ -105,6 +106,11 @@ class MetricsLog { |
int64_t install_date, |
int64_t metrics_reporting_enabled_date); |
+ // Loads a saved system profile and the associated metrics into the log. |
+ // Returns true on success. Keep calling it with fresh logs until it returns |
+ // false. |
+ bool LoadIndependentMetrics(MetricsProvider* metrics_provider); |
+ |
// Loads the environment proto that was saved by the last RecordEnvironment() |
// call from prefs. On success, returns true and |app_version| contains the |
// recovered version. Otherwise (if there was no saved environment in prefs |