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

Side by Side Diff: chrome/common/metrics/variation_ids.h

Issue 10828314: Move Variations stuff into variations/ directories and add OWNERS files for the variations client t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add OWNERS files Created 8 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
« no previous file with comments | « chrome/common/child_process_logging_mac.mm ('k') | chrome/common/metrics/variations/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_METRICS_VARIATION_IDS_H_
6 #define CHROME_COMMON_METRICS_VARIATION_IDS_H_
7
8 namespace chrome_variations {
9
10 // A list of Chrome Variation IDs. These IDs are associated with FieldTrials
11 // for re-identification and analysis on Google servers.
12 // These enums are to be used with the experiments_helper ID associoation API.
13 //
14 // The IDs are defined as part of an enum to prevent re-use. When adding your
15 // own IDs, please respect the reserved IDs of other groups, as well as the
16 // global range of permitted values.
17 //
18 // When you want to create a FieldTrial that needs to be recognized by Google
19 // properties, reserve an ID by declaring them below. Please start with the name
20 // of the FieldTrial followed a short description.
21 //
22 // Ex:
23 // // Name: Instant-Field-Trial
24 // // The Omnibox Instant Trial.
25 // kInstantTrialOn = 3300123,
26 // kInstantTrialOff = 3300124,
27 //
28 // If you programatically generate FieldTrials, you can still use a loop to
29 // create your IDs. Just be sure to reserve the range of IDs here with a clear
30 // comment.
31 //
32 // Ex:
33 // // Name: UMA-Uniformity-Trial-5-Percent
34 // // Range: 330000 - 3300099
35 // // The 5% Uniformity Trial. This is a reserved range.
36 // kUniformityTrial5PercentStart = 330000,
37 // kUniformirtTrial5PercentEnd = 330099,
38 //
39 // Anything within the range of a uint32 should be castable to an ID, but
40 // please ensure that they are within the range of the min and max values.
41 enum VariationID {
42 // Used to represent no associated Chrome variation ID.
43 kEmptyID = 0,
44
45 // The smallest possible Chrome Variation ID in the reserved range. The
46 // first 10,000 values are reserved for internal variations infrastructure
47 // use. Please do not use values in this range.
48 kMinimumID = 3300000,
49
50 // Name: UMA-Uniformity-Trial-1-Percent
51 // Range: 3300000 - 3300099
52 kUniformity1PercentBase = kMinimumID,
53 kUniformity1PercentLimit = kUniformity1PercentBase + 100,
54 // Name: UMA-Uniformity-Trial-5-Percent
55 // Range: 3300100 - 3300119
56 kUniformity5PercentBase = kUniformity1PercentLimit,
57 kUniformity5PercentLimit = kUniformity5PercentBase + 20,
58 // Name: UMA-Uniformity-Trial-10-Percent
59 // Range: 3300120 - 3300129
60 kUniformity10PercentBase = kUniformity5PercentLimit,
61 kUniformity10PercentLimit = kUniformity10PercentBase + 10,
62 // Name: UMA-Uniformity-Trial-20-Percent
63 // Range: 3300130 - 3300134
64 kUniformity20PercentBase = kUniformity10PercentLimit,
65 kUniformity20PercentLimit = kUniformity20PercentBase + 5,
66 // Name: UMA-Uniformity-Trial-50-Percent
67 // Range: 3300135 - 3300136
68 kUniformity50PercentBase = kUniformity20PercentLimit,
69 kUniformity50PercentLimit = kUniformity50PercentBase + 2,
70
71 // Name: UMA-Dynamic-Binary-Uniformity-Trial
72 // The dynamic uniformity trial is only specified on the server, this is just
73 // to reserve the id.
74 kDynamicUniformityDefault = 3300137,
75 kDynamicUniformityGroup01 = 3300138,
76
77 // Name: UMA-Session-Randomized-Uniformity-Trial-5-Percent
78 // Range: 3300139 - 3300158
79 // A uniformity trial used to compare one-time-randomized and
80 // session-randomized FieldTrials.
81 kUniformitySessionRandomized5PercentBase = 3300139,
82 kUniformitySessionRandomized5PercentLimit =
83 kUniformitySessionRandomized5PercentBase + 20,
84
85 kUniformityTrialsMax = 3300158,
86
87 // Some values reserved for unit and integration tests.
88 kTestValueA = 3300200,
89 kTestValueB = 3300201,
90
91 // USABLE IDs BEGIN HERE.
92 //
93 // The smallest possible Chrome Variation ID for use in real FieldTrials. If
94 // you are defining variation IDs for your own FieldTrials, NEVER use a value
95 // lower than this.
96 kMinimumUserID = 3310000,
97
98 // Add new variation IDs below.
99
100 // Name: OmniboxSearchSuggest
101 // Range: 3310000 - 3310019
102 // Suggest (Autocomplete) field trial, 20 IDs.
103 kSuggestIDMin = 3310000,
104 kSuggestIDMax = 3310019,
105
106 // Instant field trial.
107 kInstantIDControl = 3310020,
108 kInstantIDSilent = 3310021,
109 kInstantIDHidden = 3310022,
110 kInstantIDSuggest = 3310023,
111 kInstantIDInstant = 3310024,
112
113 // USABLE IDs END HERE.
114 //
115 // The largest possible Chrome variation ID in the reserved range. When
116 // defining your variation IDs, DO NOT exceed this value.
117 kMaximumID = 3399999,
118 };
119
120 } // namespace chrome_variations
121
122 #endif // CHROME_COMMON_METRICS_VARIATION_IDS_H_
OLDNEW
« no previous file with comments | « chrome/common/child_process_logging_mac.mm ('k') | chrome/common/metrics/variations/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698