summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/metrics_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/metrics/metrics_log.h')
-rw-r--r--chrome/browser/metrics/metrics_log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metrics_log.h b/chrome/browser/metrics/metrics_log.h
index bcdd4f5..c8e7691 100644
--- a/chrome/browser/metrics/metrics_log.h
+++ b/chrome/browser/metrics/metrics_log.h
@@ -106,6 +106,11 @@ class MetricsLog {
// Get the current version of the application as a string.
static std::string GetVersionString();
+ // Use |extension| in all uploaded appversions in addition to the standard
+ // version string.
+ static void set_version_extension(const std::string& extension) {
+ version_extension_ = extension;
+ }
protected:
// Returns a string containing the current time.
// Virtual so that it can be overridden for testing.
@@ -184,6 +189,9 @@ class MetricsLog {
void WriteProfileMetrics(const std::wstring& key,
const DictionaryValue& profile_metrics);
+ // An extension that is appended to the appversion in each log.
+ static std::string version_extension_;
+
base::Time start_time_;
base::Time end_time_;