Upload upstream chromium 114.0.5735.31
[platform/framework/web/chromium-efl.git] / components / ukm / field_trials_provider_helper.cc
1 // Copyright 2020 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/ukm/field_trials_provider_helper.h"
6
7 namespace ukm {
8
9 namespace {
10
11 // UKM suffix for field trial recording.
12 const char kUKMFieldTrialSuffix[] = "UKM";
13
14 }  // namespace
15
16 std::unique_ptr<variations::FieldTrialsProvider>
17 CreateFieldTrialsProviderForUkm(
18     variations::SyntheticTrialRegistry* synthetic_trial_registry) {
19   return std::make_unique<variations::FieldTrialsProvider>(
20       synthetic_trial_registry, kUKMFieldTrialSuffix);
21 }
22
23 }  //  namespace ukm