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

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

Issue 7337007: Introduce a field trial for Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_
7
8 #include <string>
9
10 class Profile;
11
12 namespace instant_field_trial {
13
14 // Sets up the Instant field trial (creates groups, registers the field trial
15 // with the global FieldTrialList and selects the user into one of the groups).
16 // MUST NOT BE CALLED MORE THAN ONCE.
17 void Init();
18
19 // Returns true if the user is part of the field trial experiment group.
sky 2011/07/12 00:37:50 Why do we need both IsExperiment and IsControl. Is
sreeram 2011/07/12 03:36:18 We need to be able to distinguish among these stat
20 bool IsExperiment(Profile* profile);
21
22 // Returns true if the user is part of the field trial control group.
23 bool IsControl(Profile* profile);
24
25 // Returns a string that identifies the group the user has been selected into.
26 // Useful to split histograms by field trial groups.
27 std::string GetGroupName(Profile* profile);
28
29 } // namespace instant_field_trial
30
31 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698