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

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

Issue 2465953002: Move Field Trial Utils from chrome/common/variations to components/variations/field_trial_util (Closed)
Patch Set: Moved to components/variations/field_trial_util and chrome switches Created 4 years, 1 month 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
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/common/variations/fieldtrial_testing_config_schema.json ('k') | chrome/common/variations/variations_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698