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

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

Issue 22031002: Omnibox: Create DemoteByType Experiment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: come cleanup, getting proper function names, etc. Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UTIL_H_ 5 #ifndef CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_
6 #define CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ 6 #define CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // associated with Chrome Variations. 175 // associated with Chrome Variations.
176 string16 ExtractNonVariationLabels(const string16& labels); 176 string16 ExtractNonVariationLabels(const string16& labels);
177 177
178 // Expose some functions for testing. These functions just wrap functionality 178 // Expose some functions for testing. These functions just wrap functionality
179 // that is implemented above. 179 // that is implemented above.
180 namespace testing { 180 namespace testing {
181 181
182 // Clears all of the mapped associations. 182 // Clears all of the mapped associations.
183 void ClearAllVariationIDs(); 183 void ClearAllVariationIDs();
184 184
185 // Clears all of the associated params.
186 void ClearAllVariationParams();
187
185 void TestGetFieldTrialActiveGroupIds( 188 void TestGetFieldTrialActiveGroupIds(
186 const base::FieldTrial::ActiveGroups& active_groups, 189 const base::FieldTrial::ActiveGroups& active_groups,
187 std::vector<ActiveGroupId>* name_group_ids); 190 std::vector<ActiveGroupId>* name_group_ids);
188 191
189 } // namespace testing 192 } // namespace testing
190 193
191 } // namespace chrome_variations 194 } // namespace chrome_variations
192 195
193 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ 196 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698