| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_ | |
| 6 #define CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace base { | |
| 11 class FeatureList; | |
| 12 } | |
| 13 | |
| 14 namespace chrome_variations { | |
| 15 | |
| 16 struct FieldTrialTestingConfig; | |
| 17 | |
| 18 // Provides a mechanism to associate multiple set of params to multiple groups | |
| 19 // with a formatted string specified from commandline. See | |
| 20 // kForceFieldTrialParams in chrome/common/chrome_switches.cc for more details | |
| 21 // on the formatting. | |
| 22 bool AssociateParamsFromString(const std::string& variations_string); | |
| 23 | |
| 24 // Provides a mechanism to associate multiple set of params and features to | |
| 25 // multiple groups with the |config| struct. This will also force the selection | |
| 26 // of FieldTrial groups specified in the |config|. Registers features associated | |
| 27 // with default field trials with |feature_list|. | |
| 28 void AssociateParamsFromFieldTrialConfig(const FieldTrialTestingConfig& config, | |
| 29 base::FeatureList* feature_list); | |
| 30 | |
| 31 // Associates params and features to FieldTrial groups and forces the selection | |
| 32 // of groups specified in testing/variations/fieldtrial_testing_config_*.json. | |
| 33 // Registers features associated with default field trials with |feature_list|. | |
| 34 void AssociateDefaultFieldTrialConfig(base::FeatureList* feature_list); | |
| 35 | |
| 36 } // namespace chrome_variations | |
| 37 | |
| 38 #endif // CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_ | |
| OLD | NEW |