| Index: components/metrics/metrics_log.h
|
| diff --git a/components/metrics/metrics_log.h b/components/metrics/metrics_log.h
|
| index 4f28b43b3aea02211acebfaa0faad61d615a088e..760500b3681e8e3b9932a07f7706fd73dad2f016 100644
|
| --- a/components/metrics/metrics_log.h
|
| +++ b/components/metrics/metrics_log.h
|
| @@ -100,6 +100,13 @@ class MetricsLog {
|
| int64_t install_date,
|
| int64_t metrics_reporting_enabled_date);
|
|
|
| + // Loads the environment proto as known to the passed |metrics provider|.
|
| + // On success, returns true and |app_version| contains the recovered version.
|
| + // Otherwise (if there was no saved environment or it could not be decoded),
|
| + // returns false and |app_version| is empty.
|
| + bool LoadSavedEnvironmentFromProvider(MetricsProvider* metrics_provider,
|
| + std::string* app_version);
|
| +
|
| // 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
|
|
|