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

Unified Diff: components/metrics/metrics_log.h

Issue 2918533003: Send metrics with embedded system profiles after system startup. (Closed)
Patch Set: load profile from only the first found source Created 3 years, 7 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_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

Powered by Google App Engine
This is Rietveld 408576698