Add ICU message format support
[chromium-blink-merge.git] / chrome / common / variations / variations_util.h
blob8cf899907e7742bdf33497d7e36dbc09e8742411
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_
8 #include <string>
10 namespace chrome_variations {
12 struct FieldTrialTestingConfig;
14 // Get the current set of chosen FieldTrial groups (aka variations) and send
15 // them to the child process logging module so it can save it for crash dumps.
16 void SetChildProcessLoggingVariationList();
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);
24 // Provides a mechanism to associate multiple set of params to multiple groups
25 // with the |config| struct. This will also force the selection of FieldTrial
26 // groups specified in the |config|.
27 void AssociateParamsFromFieldTrialConfig(const FieldTrialTestingConfig& config);
29 // Associates params to FieldTrial groups and forces the selection of groups
30 // specified in testing/variations/fieldtrial_testing_config_*.json.
31 void AssociateDefaultFieldTrialConfig();
33 } // namespace chrome_variations
35 #endif // CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_