OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ |
6 #define CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Return the field trial group this profile belongs to. | 43 // Return the field trial group this profile belongs to. |
44 static Group GetGroup(Profile* profile); | 44 static Group GetGroup(Profile* profile); |
45 | 45 |
46 // Check if the group is either of the two experiment subgroups. | 46 // Check if the group is either of the two experiment subgroups. |
47 static bool IsExperimentGroup(Profile* profile); | 47 static bool IsExperimentGroup(Profile* profile); |
48 | 48 |
49 // Returns a string describing the user's group. Can be added to histogram | 49 // Returns a string describing the user's group. Can be added to histogram |
50 // names, to split histograms by field trial groups. | 50 // names, to split histograms by field trial groups. |
51 static std::string GetGroupName(Profile* profile); | 51 static std::string GetGroupName(Profile* profile); |
52 | 52 |
| 53 // Returns a string denoting the user's group, for adding as a URL param. |
| 54 static std::string GetGroupAsUrlParam(Profile* profile); |
| 55 |
53 private: | 56 private: |
54 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantFieldTrial); | 57 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantFieldTrial); |
55 }; | 58 }; |
56 | 59 |
57 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ | 60 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ |
OLD | NEW |