1 // Copyright 2014 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.
5 #ifndef CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_
6 #define CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_
10 namespace chrome_variations
{
12 struct FieldTrialTestingConfig
;
14 // Provides a mechanism to associate multiple set of params to multiple groups
15 // with a formatted string specified from commandline. See
16 // kForceFieldTrialParams in chrome/common/chrome_switches.cc for more details
18 bool AssociateParamsFromString(const std::string
& variations_string
);
20 // Provides a mechanism to associate multiple set of params to multiple groups
21 // with the |config| struct. This will also force the selection of FieldTrial
22 // groups specified in the |config|.
23 void AssociateParamsFromFieldTrialConfig(const FieldTrialTestingConfig
& config
);
25 // Associates params to FieldTrial groups and forces the selection of groups
26 // specified in testing/variations/fieldtrial_testing_config_*.json.
27 void AssociateDefaultFieldTrialConfig();
29 } // namespace chrome_variations
31 #endif // CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_