OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_METRICS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 5 #ifndef CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
6 #define CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 6 #define CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 // variation associated with the specified field trial, based on its selected | 131 // variation associated with the specified field trial, based on its selected |
132 // group. If the field trial does not exist or the specified parameter does not | 132 // group. If the field trial does not exist or the specified parameter does not |
133 // exist, returns an empty string. Calling this function will result in the | 133 // exist, returns an empty string. Calling this function will result in the |
134 // field trial being marked as active if found (i.e. group() will be called on | 134 // field trial being marked as active if found (i.e. group() will be called on |
135 // it), if it wasn't already. Currently, this information is only available from | 135 // it), if it wasn't already. Currently, this information is only available from |
136 // the browser process. Thread safe. | 136 // the browser process. Thread safe. |
137 std::string GetVariationParamValue(const std::string& trial_name, | 137 std::string GetVariationParamValue(const std::string& trial_name, |
138 const std::string& param_name); | 138 const std::string& param_name); |
139 | 139 |
140 // Expose some functions for testing. These functions just wrap functionality | 140 // Expose some functions for testing. These functions just wrap functionality |
141 // that is implemented above. | 141 // that is implemented above. |
Alexei Svitkine (slow)
2013/08/06 22:26:33
Nit: I realise that this comment is wrong here. Co
Mark P
2013/08/06 22:44:49
Done.
| |
142 namespace testing { | 142 namespace testing { |
143 | 143 |
144 // Clears all of the mapped associations. | 144 // Clears all of the mapped associations. |
145 void ClearAllVariationIDs(); | 145 void ClearAllVariationIDs(); |
146 | 146 |
147 // Clears all of the associated params. | |
148 void ClearAllVariationParams(); | |
149 | |
147 } // namespace testing | 150 } // namespace testing |
148 | 151 |
149 } // namespace chrome_variations | 152 } // namespace chrome_variations |
150 | 153 |
151 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 154 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
OLD | NEW |