OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ | |
6 #define CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 class Profile; | |
11 | |
12 namespace instant_field_trial { | |
13 | |
14 // Sets up the Instant field trial (creates groups, registers the field trial | |
15 // with the global FieldTrialList and selects the user into one of the groups). | |
16 // MUST NOT BE CALLED MORE THAN ONCE. | |
17 void Init(); | |
18 | |
19 // Returns true if the user is part of the field trial experiment group. | |
sky
2011/07/12 00:37:50
Why do we need both IsExperiment and IsControl. Is
sreeram
2011/07/12 03:36:18
We need to be able to distinguish among these stat
| |
20 bool IsExperiment(Profile* profile); | |
21 | |
22 // Returns true if the user is part of the field trial control group. | |
23 bool IsControl(Profile* profile); | |
24 | |
25 // Returns a string that identifies the group the user has been selected into. | |
26 // Useful to split histograms by field trial groups. | |
27 std::string GetGroupName(Profile* profile); | |
28 | |
29 } // namespace instant_field_trial | |
30 | |
31 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ | |
OLD | NEW |