| OLD | NEW |
| 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_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ | 5 #ifndef CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ |
| 6 #define CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ | 6 #define CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 static bool InHQPReplaceHUPScoringFieldTrial(); | 101 static bool InHQPReplaceHUPScoringFieldTrial(); |
| 102 | 102 |
| 103 // Returns whether the user should get the experimental setup or the | 103 // Returns whether the user should get the experimental setup or the |
| 104 // default setup for this field trial. The experiment group | 104 // default setup for this field trial. The experiment group |
| 105 // simultaneously disables HistoryURL provider from searching the | 105 // simultaneously disables HistoryURL provider from searching the |
| 106 // URL database and directs HistoryQuick provider to calculate both | 106 // URL database and directs HistoryQuick provider to calculate both |
| 107 // HUP-style and HQP-style scores for matches, then return whichever | 107 // HUP-style and HQP-style scores for matches, then return whichever |
| 108 // is larger. | 108 // is larger. |
| 109 static bool InHQPReplaceHUPScoringFieldTrialExperimentGroup(); | 109 static bool InHQPReplaceHUPScoringFieldTrialExperimentGroup(); |
| 110 | 110 |
| 111 // --------------------------------------------------------- |
| 112 // For the AutocompleteController "stop timer" field trial. |
| 113 |
| 114 // Returns whether the user should get the experimental setup or the |
| 115 // default setup for this field trial. The experiment group uses |
| 116 // a timer in AutocompleteController to tell the providers to stop |
| 117 // looking for matches after too much time has passed. In other words, |
| 118 // it tries to tell the providers to stop updating the list of suggested |
| 119 // matches if updating the matches would probably be disruptive because |
| 120 // they're arriving so late. |
| 121 static bool InStopTimerFieldTrialExperimentGroup(); |
| 122 |
| 111 private: | 123 private: |
| 112 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); | 124 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); |
| 113 }; | 125 }; |
| 114 | 126 |
| 115 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ | 127 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ |
| OLD | NEW |