| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // field trial. | 104 // field trial. |
| 105 | 105 |
| 106 // Returns whether the user is in any group for this field trial. | 106 // Returns whether the user is in any group for this field trial. |
| 107 // (Should always be true unless initialization went wrong.) | 107 // (Should always be true unless initialization went wrong.) |
| 108 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrial(); | 108 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrial(); |
| 109 | 109 |
| 110 // Returns whether we should ignore all mid-word matches in | 110 // Returns whether we should ignore all mid-word matches in |
| 111 // HistoryQuick provider. | 111 // HistoryQuick provider. |
| 112 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrialExperimentGroup(); | 112 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrialExperimentGroup(); |
| 113 | 113 |
| 114 // --------------------------------------------------------- |
| 115 // For the HistoryQuick provider use cursor position field trial. |
| 116 |
| 117 // Returns whether the user is in any group for this field trial. |
| 118 // (Should always be true unless initialization went wrong.) |
| 119 static bool InHQPUseCursorPositionFieldTrial(); |
| 120 |
| 121 // Returns whether HistoryQuick provider should allow breaking the |
| 122 // omnibox input string at cursor position. |
| 123 static bool InHQPUseCursorPositionFieldTrialExperimentGroup(); |
| 124 |
| 114 private: | 125 private: |
| 115 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial); | 126 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial); |
| 116 }; | 127 }; |
| 117 | 128 |
| 118 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ | 129 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ |
| OLD | NEW |