field_trials_provider_helper.cc 645 B

1234567891011121314151617181920212223
  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. #include "components/ukm/field_trials_provider_helper.h"
  5. namespace ukm {
  6. namespace {
  7. // UKM suffix for field trial recording.
  8. const char kUKMFieldTrialSuffix[] = "UKM";
  9. } // namespace
  10. std::unique_ptr<variations::FieldTrialsProvider>
  11. CreateFieldTrialsProviderForUkm(
  12. variations::SyntheticTrialRegistry* synthetic_trial_registry) {
  13. return std::make_unique<variations::FieldTrialsProvider>(
  14. synthetic_trial_registry, kUKMFieldTrialSuffix);
  15. }
  16. } // namespace ukm