diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/metrics/field_trials_provider.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/metrics/field_trials_provider.h')
-rw-r--r-- | chromium/components/metrics/field_trials_provider.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/components/metrics/field_trials_provider.h b/chromium/components/metrics/field_trials_provider.h index 6d115e5e47a..d2b4e0edcaa 100644 --- a/chromium/components/metrics/field_trials_provider.h +++ b/chromium/components/metrics/field_trials_provider.h @@ -8,6 +8,7 @@ #include "base/strings/string_piece.h" #include "base/time/time.h" #include "components/metrics/metrics_provider.h" +#include "third_party/metrics_proto/chrome_user_metrics_extension.pb.h" // TODO(crbug/507665): Once MetricsProvider/SystemProfileProto are moved into // //services/metrics, then //components/variations can depend on them, and @@ -30,12 +31,26 @@ class FieldTrialsProvider : public metrics::MetricsProvider { void ProvideSystemProfileMetricsWithLogCreationTime( base::TimeTicks log_creation_time, metrics::SystemProfileProto* system_profile_proto) override; + void ProvideCurrentSessionData( + metrics::ChromeUserMetricsExtension* uma_proto) override; + + // Sets |log_creation_time_| to |time|. + void SetLogCreationTimeForTesting(base::TimeTicks time); private: // Overrideable for testing. virtual void GetFieldTrialIds( std::vector<ActiveGroupId>* field_trial_ids) const; + // Gets active FieldTrials and SyntheticFieldTrials and populates + // |system_profile_proto| with them. + void GetAndWriteFieldTrials( + metrics::SystemProfileProto* system_profile_proto) const; + + // The most recent time passed to + // ProvideSystemProfileMetricsWithLogCreationTime(). + base::TimeTicks log_creation_time_; + SyntheticTrialRegistry* registry_; // Suffix used for the field trial names before they are hashed for uploads. |