field_trials_provider_helper.h 711 B

12345678910111213141516171819202122232425
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_UKM_FIELD_TRIALS_PROVIDER_HELPER_H_
  5. #define COMPONENTS_UKM_FIELD_TRIALS_PROVIDER_HELPER_H_
  6. #include <memory>
  7. #include "components/metrics/field_trials_provider.h"
  8. namespace variations {
  9. class SyntheticTrialRegistry;
  10. }
  11. namespace ukm {
  12. // Creates a FieldTrialsProvider for use with UKMs.
  13. std::unique_ptr<variations::FieldTrialsProvider>
  14. CreateFieldTrialsProviderForUkm(
  15. variations::SyntheticTrialRegistry* synthetic_field_trial_registry);
  16. } // namespace ukm
  17. #endif // COMPONENTS_UKM_FIELD_TRIALS_PROVIDER_HELPER_H_