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

Side by Side Diff: chrome/browser/instant/instant_field_trial.h

Issue 8400068: Don't send omnibox bounds for hidden field trials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ALL_CONTROL_B, 62 ALL_CONTROL_B,
63 }; 63 };
64 64
65 // Activate the field trial. Before this call, all calls to GetGroup will 65 // Activate the field trial. Before this call, all calls to GetGroup will
66 // return INACTIVE. *** MUST NOT BE CALLED MORE THAN ONCE. *** 66 // return INACTIVE. *** MUST NOT BE CALLED MORE THAN ONCE. ***
67 static void Activate(); 67 static void Activate();
68 68
69 // Return the field trial group this profile belongs to. 69 // Return the field trial group this profile belongs to.
70 static Group GetGroup(Profile* profile); 70 static Group GetGroup(Profile* profile);
71 71
72 // Check if the user is in one of the EXPERIMENT groups. 72 // Check if the user is in any of the EXPERIMENT groups.
73 static bool IsExperimentGroup(Profile* profile); 73 static bool IsInstantExperiment(Profile* profile);
74 74
75 // Check if the user is in the HIDDEN_EXPERIMENT group. 75 // Check if the user is in the HIDDEN or SILENT EXPERIMENT groups.
76 static bool IsHiddenExperiment(Profile* profile); 76 static bool IsHiddenExperiment(Profile* profile);
77 77
78 // Check if the user is in the SILENT EXPERIMENT group. 78 // Check if the user is in the SILENT EXPERIMENT group.
79 static bool IsSilentExperiment(Profile* profile); 79 static bool IsSilentExperiment(Profile* profile);
80 80
81 // Returns a string describing the user's group. Can be added to histogram 81 // Returns a string describing the user's group. Can be added to histogram
82 // names, to split histograms by field trial groups. 82 // names, to split histograms by field trial groups.
83 static std::string GetGroupName(Profile* profile); 83 static std::string GetGroupName(Profile* profile);
84 84
85 // Returns a string denoting the user's group, for adding as a URL param. 85 // Returns a string denoting the user's group, for adding as a URL param.
86 static std::string GetGroupAsUrlParam(Profile* profile); 86 static std::string GetGroupAsUrlParam(Profile* profile);
87 87
88 private: 88 private:
89 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantFieldTrial); 89 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantFieldTrial);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ 92 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | chrome/browser/instant/instant_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698