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

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

Issue 7558014: Add a URL param to indicate group selection in Instant field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed @pkasting's comments Created 9 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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Return the field trial group this profile belongs to. 43 // Return the field trial group this profile belongs to.
44 static Group GetGroup(Profile* profile); 44 static Group GetGroup(Profile* profile);
45 45
46 // Check if the group is either of the two experiment subgroups. 46 // Check if the group is either of the two experiment subgroups.
47 static bool IsExperimentGroup(Profile* profile); 47 static bool IsExperimentGroup(Profile* profile);
48 48
49 // Returns a string describing the user's group. Can be added to histogram 49 // Returns a string describing the user's group. Can be added to histogram
50 // names, to split histograms by field trial groups. 50 // names, to split histograms by field trial groups.
51 static std::string GetGroupName(Profile* profile); 51 static std::string GetGroupName(Profile* profile);
52 52
53 // Returns a string denoting the user's group, for adding as a URL param.
54 static std::string GetGroupAsUrlParam(Profile* profile);
55
53 private: 56 private:
54 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantFieldTrial); 57 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantFieldTrial);
55 }; 58 };
56 59
57 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_ 60 #endif // CHROME_BROWSER_INSTANT_INSTANT_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/search_provider.cc ('k') | chrome/browser/instant/instant_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698