| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // Returns true if the user is in the experiment group that scores | 106 // Returns true if the user is in the experiment group that scores |
| 107 // search history query suggestions less aggressively so that they don't | 107 // search history query suggestions less aggressively so that they don't |
| 108 // inline. | 108 // inline. |
| 109 static bool SearchHistoryPreventInlining(); | 109 static bool SearchHistoryPreventInlining(); |
| 110 | 110 |
| 111 // Returns true if the user is in the experiment group that disables | 111 // Returns true if the user is in the experiment group that disables |
| 112 // all query suggestions from search history. | 112 // all query suggestions from search history. |
| 113 static bool SearchHistoryDisable(); | 113 static bool SearchHistoryDisable(); |
| 114 | 114 |
| 115 // --------------------------------------------------------- |
| 116 // For the OmniboxReorderForLegalDefaultMatch field trial. |
| 117 |
| 118 // Returns true if the omnibox will reorder matches so that a match |
| 119 // that's allowed to be the default match will appear first. This means |
| 120 // AutocompleteProviders can score matches however they desire without |
| 121 // regard to making sure the top match when all the matches from all |
| 122 // providers are merged is a legal default match. |
| 123 static bool InReorderForLegalDefaultMatchGroup(); |
| 124 |
| 115 private: | 125 private: |
| 116 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); | 126 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); |
| 117 }; | 127 }; |
| 118 | 128 |
| 119 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ | 129 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ |
| OLD | NEW |