Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: chrome/common/variations/variations_util.h

Issue 1200383005: Activate prepopulated fieldtrials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codegen_field_trials
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/variations/variations_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_ 5 #ifndef CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_
6 #define CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_ 6 #define CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace chrome_variations { 10 namespace chrome_variations {
11 11
12 struct FieldTrialTestingConfig;
13
12 // Get the current set of chosen FieldTrial groups (aka variations) and send 14 // Get the current set of chosen FieldTrial groups (aka variations) and send
13 // them to the child process logging module so it can save it for crash dumps. 15 // them to the child process logging module so it can save it for crash dumps.
14 void SetChildProcessLoggingVariationList(); 16 void SetChildProcessLoggingVariationList();
15 17
16 // Provides a mechanism to associate multiple set of params to multiple groups 18 // Provides a mechanism to associate multiple set of params to multiple groups
17 // with a formatted string specified from commandline. See 19 // with a formatted string specified from commandline. See
18 // kForceFieldTrialParams in chrome/common/chrome_switches.cc for more details 20 // kForceFieldTrialParams in chrome/common/chrome_switches.cc for more details
19 // on the formatting. 21 // on the formatting.
20 bool AssociateParamsFromString(const std::string& variations_string); 22 bool AssociateParamsFromString(const std::string& variations_string);
21 23
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);
28
29 // Associates params to FieldTrial groups and forces the selection of groups
30 // specified in testing/variations/fieldtrial_testing_config_*.json.
31 void AssociateDefaultFieldTrialConfig();
32
22 } // namespace chrome_variations 33 } // namespace chrome_variations
23 34
24 #endif // CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_ 35 #endif // CHROME_COMMON_VARIATIONS_VARIATIONS_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/variations/variations_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698