| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 static bool InHQPReplaceHUPScoringFieldTrial(); | 76 static bool InHQPReplaceHUPScoringFieldTrial(); |
| 77 | 77 |
| 78 // Returns whether the user should get the experimental setup or the | 78 // Returns whether the user should get the experimental setup or the |
| 79 // default setup for this field trial. The experiment group | 79 // default setup for this field trial. The experiment group |
| 80 // simultaneously disables HistoryURL provider from searching the | 80 // simultaneously disables HistoryURL provider from searching the |
| 81 // URL database and directs HistoryQuick provider to calculate both | 81 // URL database and directs HistoryQuick provider to calculate both |
| 82 // HUP-style and HQP-style scores for matches, then return whichever | 82 // HUP-style and HQP-style scores for matches, then return whichever |
| 83 // is larger. | 83 // is larger. |
| 84 static bool InHQPReplaceHUPScoringFieldTrialExperimentGroup(); | 84 static bool InHQPReplaceHUPScoringFieldTrialExperimentGroup(); |
| 85 | 85 |
| 86 // --------------------------------------------------------- |
| 87 // For the HistoryQuick provider only count matches at word boundaries |
| 88 // field trial. |
| 89 |
| 90 // Returns whether the user is in any group for this field trial. |
| 91 // (Should always be true unless initialization went wrong.) |
| 92 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrial(); |
| 93 |
| 94 // Returns whether we should ignore all mid-word matches in |
| 95 // HistoryQuick provider. |
| 96 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrialExperimentGroup(); |
| 97 |
| 86 private: | 98 private: |
| 87 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial); | 99 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial); |
| 88 }; | 100 }; |
| 89 | 101 |
| 90 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ | 102 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ |
| OLD | NEW |