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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_field_trial.h

Issue 10260020: Make Omnibox HistoryURL Provider always aggressive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unit test. Created 8 years, 7 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_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 12
13 // This class manages the Autocomplete field trials. 13 // This class manages the Autocomplete field trials.
14 class AutocompleteFieldTrial { 14 class AutocompleteFieldTrial {
15 public: 15 public:
16 // Creates the field trial groups. 16 // Creates the field trial groups.
17 // *** MUST NOT BE CALLED MORE THAN ONCE. *** 17 // *** MUST NOT BE CALLED MORE THAN ONCE. ***
18 static void Activate(); 18 static void Activate();
19 19
20 // --------------------------------------------------------- 20 // ---------------------------------------------------------
21 // For the aggressive History URL Provider field trial.
22
23 // Returns whether the user is in any field trial group for this
24 // field trial. False indicates that the field trial wasn't
25 // successfully created for some reason.
26 static bool InAggressiveHUPFieldTrial();
27
28 // Returns whether the user should get the experiment setup or
29 // the default setup for this field trial.
30 static bool InAggressiveHUPFieldTrialExperimentGroup();
31
32 // ---------------------------------------------------------
33 // For the inline History Quick Provider field trial. 21 // For the inline History Quick Provider field trial.
34 22
35 // Returns whether the user is in any field trial group for this 23 // Returns whether the user is in any field trial group for this
36 // field trial. False indicates that the field trial wasn't 24 // field trial. False indicates that the field trial wasn't
37 // successfully created for some reason. 25 // successfully created for some reason.
38 static bool InDisallowInlineHQPFieldTrial(); 26 static bool InDisallowInlineHQPFieldTrial();
39 27
40 // Returns whether the user should get the experiment setup or 28 // Returns whether the user should get the experiment setup or
41 // the default setup for this field trial. The experiment 29 // the default setup for this field trial. The experiment
42 // group prohibits inlining suggestions. 30 // group prohibits inlining suggestions.
(...skipping 18 matching lines...) Expand all
61 // Gets the maximum number of groups in the suggest field trial. 49 // Gets the maximum number of groups in the suggest field trial.
62 // (Useful for telling UMA_HISTOGRAM_ENUMERATION the number of buckets 50 // (Useful for telling UMA_HISTOGRAM_ENUMERATION the number of buckets
63 // to create.) 51 // to create.)
64 static int GetSuggestNumberOfGroups(); 52 static int GetSuggestNumberOfGroups();
65 53
66 private: 54 private:
67 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial); 55 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial);
68 }; 56 };
69 57
70 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ 58 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698