Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "components/omnibox/common/omnibox_features.h" |
| 6 | |
manuk | c32a8eff | 2019-07-02 15:48:30 | [diff] [blame] | 7 | #include "build/build_config.h" |
| 8 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 9 | namespace omnibox { |
| 10 | |
| 11 | // Feature used to hide the scheme from steady state URLs displayed in the |
| 12 | // toolbar. It is restored during editing. |
| 13 | const base::Feature kHideFileUrlScheme { |
| 14 | "OmniboxUIExperimentHideFileUrlScheme", |
| 15 | // Android and iOS don't have the File security chip, and therefore still |
| 16 | // need to show the file scheme. |
| 17 | #if defined(OS_ANDROID) || defined(OS_IOS) |
| 18 | base::FEATURE_DISABLED_BY_DEFAULT |
| 19 | #else |
| 20 | base::FEATURE_ENABLED_BY_DEFAULT |
| 21 | #endif |
| 22 | }; |
| 23 | |
| 24 | // Feature used to hide the scheme from steady state URLs displayed in the |
| 25 | // toolbar. It is restored during editing. |
Tommy C. Li | 7514ba8 | 2019-06-25 19:43:53 | [diff] [blame] | 26 | const base::Feature kHideSteadyStateUrlScheme{ |
| 27 | "OmniboxUIExperimentHideSteadyStateUrlScheme", |
| 28 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 29 | |
| 30 | // Feature used to hide trivial subdomains from steady state URLs displayed in |
| 31 | // the toolbar. It is restored during editing. |
Tommy C. Li | 7514ba8 | 2019-06-25 19:43:53 | [diff] [blame] | 32 | const base::Feature kHideSteadyStateUrlTrivialSubdomains{ |
| 33 | "OmniboxUIExperimentHideSteadyStateUrlTrivialSubdomains", |
| 34 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 35 | |
| 36 | // Feature used to hide the path, query and ref from steady state URLs |
| 37 | // displayed in the toolbar. It is restored during editing. |
| 38 | const base::Feature kHideSteadyStateUrlPathQueryAndRef { |
| 39 | "OmniboxUIExperimentHideSteadyStateUrlPathQueryAndRef", |
| 40 | #if defined(OS_IOS) |
| 41 | base::FEATURE_ENABLED_BY_DEFAULT |
| 42 | #else |
| 43 | base::FEATURE_DISABLED_BY_DEFAULT |
| 44 | #endif |
| 45 | }; |
| 46 | |
| 47 | // Feature used to undo all omnibox elisions on a single click or focus action. |
| 48 | const base::Feature kOneClickUnelide{"OmniboxOneClickUnelide", |
| 49 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 50 | |
Christopher Thompson | c26ef30 | 2019-06-07 01:55:45 | [diff] [blame] | 51 | // This feature simplifies the security indiciator UI for https:// pages. |
| 52 | // The default behavior is to show no verbose text for EV pages. When disabled, |
| 53 | // the verbose EV indicator text will be displayed. |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 54 | // This feature is used for EV UI removal experiment (https://crbug.com/803501). |
| 55 | const base::Feature kSimplifyHttpsIndicator{"SimplifyHttpsIndicator", |
Christopher Thompson | c26ef30 | 2019-06-07 01:55:45 | [diff] [blame] | 56 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 57 | |
manuk | addd3c4 | 2019-04-09 21:20:59 | [diff] [blame] | 58 | // Feature used to enable local entity suggestions. Similar to rich entities but |
| 59 | // but location specific. E.g., typing 'starbucks near' could display the local |
| 60 | // entity suggestion 'starbucks near disneyland \n starbucks * Anaheim, CA'. |
| 61 | const base::Feature kOmniboxLocalEntitySuggestions{ |
| 62 | "OmniboxLocalEntitySuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 63 | |
Kevin Bailey | b3e0873 | 2019-05-29 03:55:25 | [diff] [blame] | 64 | // Feature used to cap the number of URL-type matches shown within the |
| 65 | // Omnibox. If enabled, the number of URL-type matches is limited (unless |
| 66 | // there are no more non-URL matches available.) If enabled, there is a |
| 67 | // companion parameter - OmniboxMaxURLMatches - which specifies the maximum |
| 68 | // desired number of URL-type matches. |
Kevin Bailey | 2623886 | 2019-10-31 22:08:12 | [diff] [blame] | 69 | const base::Feature kOmniboxMaxURLMatches { |
| 70 | "OmniboxMaxURLMatches", |
| 71 | #if defined(OS_IOS) || defined(OS_ANDROID) |
| 72 | base::FEATURE_DISABLED_BY_DEFAULT |
| 73 | #else |
| 74 | base::FEATURE_ENABLED_BY_DEFAULT |
| 75 | #endif |
| 76 | }; |
Kevin Bailey | b3e0873 | 2019-05-29 03:55:25 | [diff] [blame] | 77 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 78 | // Feature used to enable entity suggestion images and enhanced presentation |
| 79 | // showing more context and descriptive text about the entity. |
| 80 | const base::Feature kOmniboxRichEntitySuggestions{ |
Justin Donnelly | 481a69c | 2019-05-03 20:41:42 | [diff] [blame] | 81 | "OmniboxRichEntitySuggestions", |
| 82 | #if defined(OS_IOS) || defined(OS_ANDROID) |
| 83 | base::FEATURE_DISABLED_BY_DEFAULT |
| 84 | #else |
| 85 | base::FEATURE_ENABLED_BY_DEFAULT |
| 86 | #endif |
| 87 | }; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 88 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 89 | // Feature used to enable swapping the rows on answers. |
| 90 | const base::Feature kOmniboxReverseAnswers{"OmniboxReverseAnswers", |
| 91 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 92 | |
Kevin Bailey | 7d918b9 | 2019-05-02 16:00:14 | [diff] [blame] | 93 | // Feature used to enable matching short words to bookmarks for suggestions. |
| 94 | const base::Feature kOmniboxShortBookmarkSuggestions{ |
| 95 | "OmniboxShortBookmarkSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 96 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 97 | // Feature used to force on the experiment of transmission of tail suggestions |
| 98 | // from GWS to this client, currently testing for desktop. |
| 99 | const base::Feature kOmniboxTailSuggestions{ |
| 100 | "OmniboxTailSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 101 | |
Kevin Bailey | 37bbf1d | 2019-08-21 19:23:55 | [diff] [blame] | 102 | // Feature that enables the tab-switch suggestions corresponding to an open |
| 103 | // tab, for a button or dedicated suggestion. Enabled by default on Desktop |
| 104 | // and iOS. |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 105 | const base::Feature kOmniboxTabSwitchSuggestions{ |
| 106 | "OmniboxTabSwitchSuggestions", |
Stepan Khapugin | b0980166 | 2019-05-07 10:17:04 | [diff] [blame] | 107 | #if defined(OS_ANDROID) |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 108 | base::FEATURE_DISABLED_BY_DEFAULT |
| 109 | #else |
| 110 | base::FEATURE_ENABLED_BY_DEFAULT |
| 111 | #endif |
| 112 | }; |
| 113 | |
Kevin Bailey | 37bbf1d | 2019-08-21 19:23:55 | [diff] [blame] | 114 | // Feature that enables tab-switch suggestions in their own row. |
| 115 | const base::Feature kOmniboxTabSwitchSuggestionsDedicatedRow{ |
| 116 | "OmniboxTabSwitchSuggestionsDedicatedRow", |
| 117 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 118 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 119 | // Feature used to enable various experiments on keyword mode, UI and |
| 120 | // suggestions. |
| 121 | const base::Feature kExperimentalKeywordMode{"OmniboxExperimentalKeywordMode", |
| 122 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 123 | |
| 124 | // Feature used to enable Pedal suggestions. |
| 125 | const base::Feature kOmniboxPedalSuggestions{"OmniboxPedalSuggestions", |
| 126 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 127 | |
Tommy C. Li | a2c75fb | 2019-04-08 20:22:34 | [diff] [blame] | 128 | // Feature used for UI that improves transparency of and control over omnibox |
Tommy Li | 9d12b4be | 2019-09-12 19:21:41 | [diff] [blame] | 129 | // suggestions. This includes "Why this Suggestion?" and user controls to delete |
| 130 | // personalized suggestions. This will be eventually enabled by default. |
Tommy C. Li | a2c75fb | 2019-04-08 20:22:34 | [diff] [blame] | 131 | const base::Feature kOmniboxSuggestionTransparencyOptions{ |
| 132 | "OmniboxSuggestionTransparencyOptions", base::FEATURE_DISABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 133 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 134 | // Feature to enable clipboard provider to suggest copied text. |
| 135 | const base::Feature kEnableClipboardProviderTextSuggestions{ |
Robbie Gibson | 85cef318 | 2019-07-21 15:10:29 | [diff] [blame] | 136 | "OmniboxEnableClipboardProviderTextSuggestions", |
| 137 | #if defined(OS_IOS) |
| 138 | base::FEATURE_ENABLED_BY_DEFAULT |
| 139 | #else |
| 140 | base::FEATURE_DISABLED_BY_DEFAULT |
| 141 | #endif |
| 142 | }; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 143 | |
| 144 | // Feature to enable clipboard provider to suggest searching for copied images. |
| 145 | const base::Feature kEnableClipboardProviderImageSuggestions{ |
Robbie Gibson | 85cef318 | 2019-07-21 15:10:29 | [diff] [blame] | 146 | "OmniboxEnableClipboardProviderImageSuggestions", |
| 147 | #if defined(OS_IOS) |
| 148 | base::FEATURE_ENABLED_BY_DEFAULT |
| 149 | #else |
| 150 | base::FEATURE_DISABLED_BY_DEFAULT |
| 151 | #endif |
| 152 | }; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 153 | |
| 154 | // Feature to enable the search provider to send a request to the suggest |
| 155 | // server on focus. This allows the suggest server to warm up, by, for |
| 156 | // example, loading per-user models into memory. Having a per-user model |
| 157 | // in memory allows the suggest server to respond more quickly with |
| 158 | // personalized suggestions as the user types. |
| 159 | const base::Feature kSearchProviderWarmUpOnFocus{ |
| 160 | "OmniboxWarmUpSearchProviderOnFocus", |
| 161 | #if defined(OS_IOS) |
| 162 | base::FEATURE_DISABLED_BY_DEFAULT |
| 163 | #else |
| 164 | base::FEATURE_ENABLED_BY_DEFAULT |
| 165 | #endif |
| 166 | }; |
| 167 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 168 | // Feature used to display the title of the current URL match. |
| 169 | const base::Feature kDisplayTitleForCurrentUrl{ |
| 170 | "OmniboxDisplayTitleForCurrentUrl", |
| 171 | #if !defined(OS_IOS) |
| 172 | base::FEATURE_ENABLED_BY_DEFAULT |
| 173 | #else |
| 174 | base::FEATURE_DISABLED_BY_DEFAULT |
| 175 | #endif |
| 176 | }; |
| 177 | |
| 178 | // Feature used for the max autocomplete matches UI experiment. |
| 179 | const base::Feature kUIExperimentMaxAutocompleteMatches{ |
| 180 | "OmniboxUIExperimentMaxAutocompleteMatches", |
| 181 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 182 | |
| 183 | // Feature used to display the search terms instead of the URL in the Omnibox |
| 184 | // when the user is on the search results page of the default search provider. |
| 185 | const base::Feature kQueryInOmnibox{"QueryInOmnibox", |
| 186 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 187 | |
Tommy C. Li | 0001b82 | 2019-05-10 00:10:03 | [diff] [blame] | 188 | // Feature used for showing the URL suggestion favicons as a UI experiment. |
| 189 | // Already launched on Desktop, and currently under development on Android. |
| 190 | // This flag is not used on iOS. |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 191 | const base::Feature kUIExperimentShowSuggestionFavicons{ |
Tomasz Wiszkowski | 4af1f735 | 2019-04-08 16:46:15 | [diff] [blame] | 192 | "OmniboxUIExperimentShowSuggestionFavicons", |
| 193 | #if defined(OS_ANDROID) |
| 194 | base::FEATURE_DISABLED_BY_DEFAULT |
| 195 | #else |
| 196 | base::FEATURE_ENABLED_BY_DEFAULT |
| 197 | #endif |
| 198 | }; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 199 | |
| 200 | // Feature used to always swap the title and URL. |
| 201 | const base::Feature kUIExperimentSwapTitleAndUrl{ |
| 202 | "OmniboxUIExperimentSwapTitleAndUrl", |
| 203 | #if defined(OS_IOS) || defined(OS_ANDROID) |
| 204 | base::FEATURE_DISABLED_BY_DEFAULT |
| 205 | #else |
| 206 | base::FEATURE_ENABLED_BY_DEFAULT |
| 207 | #endif |
| 208 | }; |
| 209 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 210 | // Feature used to enable speculatively starting a service worker associated |
| 211 | // with the destination of the default match when the user's input looks like a |
| 212 | // query. |
| 213 | const base::Feature kSpeculativeServiceWorkerStartOnQueryInput{ |
| 214 | "OmniboxSpeculativeServiceWorkerStartOnQueryInput", |
| 215 | base::FEATURE_ENABLED_BY_DEFAULT |
| 216 | }; |
| 217 | |
| 218 | // Feature used to fetch document suggestions. |
| 219 | const base::Feature kDocumentProvider{"OmniboxDocumentProvider", |
| 220 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 221 | |
manuk | 4542e23 | 2019-09-11 19:27:35 | [diff] [blame] | 222 | // Feature used to autocomplete bookmark, history, and document suggestions when |
| 223 | // the user input is a prefix of their titles, as opposed to their URLs. |
| 224 | const base::Feature kAutocompleteTitles{"OmniboxAutocompleteTitles", |
| 225 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 226 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 227 | // Feature to use material design weather icons in the omnibox when displaying |
| 228 | // weather answers. |
| 229 | const base::Feature kOmniboxMaterialDesignWeatherIcons{ |
manuk | 9a2ed55 | 2019-09-09 23:45:44 | [diff] [blame] | 230 | "OmniboxMaterialDesignWeatherIcons", base::FEATURE_ENABLED_BY_DEFAULT}; |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 231 | |
Patrick Noland | 2b4968b | 2019-06-27 14:50:26 | [diff] [blame] | 232 | // Returns whether IsInstantExtendedAPIEnabled should be ignored when deciding |
| 233 | // the number of Google-provided search suggestions. |
| 234 | const base::Feature kOmniboxDisableInstantExtendedLimit{ |
| 235 | "OmniboxDisableInstantExtendedLimit", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 236 | |
Brandon Wylie | f8dd4e8 | 2019-07-11 16:39:57 | [diff] [blame] | 237 | // Show the search engine logo in the omnibox on Android (desktop already does |
| 238 | // this). |
| 239 | const base::Feature kOmniboxSearchEngineLogo{"OmniboxSearchEngineLogo", |
| 240 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 241 | |
manuk | bf3c8ab | 2019-10-24 16:52:08 | [diff] [blame] | 242 | // Feature used to allow users to remove suggestions from clipboard. |
| 243 | const base::Feature kOmniboxRemoveSuggestionsFromClipboard{ |
| 244 | "OmniboxRemoveSuggestionsFromClipboard", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 245 | |
| 246 | // Feature to provide non personalized head search suggestion from a compact |
| 247 | // on device model. |
| 248 | const base::Feature kOnDeviceHeadProvider{"OmniboxOnDeviceHeadProvider", |
| 249 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 250 | |
| 251 | // Feature to debounce drive requests from the document provider. |
| 252 | const base::Feature kDebounceDocumentProvider{ |
| 253 | "OmniboxDebounceDocumentProvider", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 254 | |
Tommy Li | 6390ecc | 2019-09-06 21:08:57 | [diff] [blame] | 255 | // Preserves the default match against change when providers return results |
| 256 | // asynchronously. This prevents the default match from changing after the user |
| 257 | // finishes typing. Without this feature, if the default match is updated right |
| 258 | // when the user presses Enter, the user may go to a surprising destination. |
| 259 | const base::Feature kOmniboxPreserveDefaultMatchAgainstAsyncUpdate{ |
| 260 | "OmniboxPreserveDefaultMatchAgainstAsyncUpdate", |
| 261 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 262 | |
manuk | 7b89f664 | 2019-11-08 19:25:24 | [diff] [blame] | 263 | // Demotes the relevance scores when comparing suggestions based on the |
| 264 | // suggestion's |AutocompleteMatchType| and the user's |PageClassification|. |
| 265 | // This feature's main job is to contain the DemoteByType parameter. |
| 266 | const base::Feature kOmniboxDemoteByType{"OmniboxDemoteByType", |
| 267 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 268 | |
Tommy C. Li | 09010551 | 2019-05-16 22:00:56 | [diff] [blame] | 269 | // Feature to configure on-focus suggestions provided by ZeroSuggestProvider. |
Tommy C. Li | 414f2202 | 2019-06-07 23:46:22 | [diff] [blame] | 270 | // This feature's main job is to contain some field trial parameters such as: |
| 271 | // - "ZeroSuggestVariant" configures the per-page-classification mode of |
| 272 | // ZeroSuggestProvider. |
Tommy C. Li | 09010551 | 2019-05-16 22:00:56 | [diff] [blame] | 273 | const base::Feature kOnFocusSuggestions{"OmniboxOnFocusSuggestions", |
| 274 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 275 | |
Tomasz Wiszkowski | 947f6d0d | 2019-03-15 22:27:25 | [diff] [blame] | 276 | // Allow suggestions to be shown to the user on the New Tab Page upon focusing |
| 277 | // URL bar (the omnibox). |
| 278 | const base::Feature kZeroSuggestionsOnNTP{"OmniboxZeroSuggestionsOnNTP", |
| 279 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 280 | |
Moe Ahmadi | 4005ec9 | 2019-09-09 16:55:53 | [diff] [blame] | 281 | // Allow suggestions to be shown to the user on the New Tab Page upon focusing |
| 282 | // the real search box. |
| 283 | const base::Feature kZeroSuggestionsOnNTPRealbox{ |
| 284 | "OmniboxZeroSuggestionsOnNTPRealbox", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 285 | |
Tommy Li | 1d03b9bf | 2019-09-23 23:46:34 | [diff] [blame] | 286 | // Allow on-focus query refinements to be shown on the default SERP. |
| 287 | const base::Feature kZeroSuggestionsOnSERP{"OmniboxZeroSuggestionsOnSERP", |
| 288 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 289 | |
Justin Donnelly | f270348 | 2019-10-24 21:42:15 | [diff] [blame] | 290 | // If enabled, changes the way Google-provided search suggestions are scored by |
| 291 | // the backend. Note that this Feature is only used for triggering a server- |
| 292 | // side experiment config that will send experiment IDs to the backend. It is |
| 293 | // not referred to in any of the Chromium code. |
| 294 | const base::Feature kOmniboxExperimentalSuggestScoring{ |
| 295 | "OmniboxExperimentalSuggestScoring", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 296 | |
manukh | 3bb80c9 | 2020-01-22 00:19:46 | [diff] [blame] | 297 | // If disabled, terms with no wordstart matches disqualify the suggestion unless |
| 298 | // they occur in the URL host. If enabled, terms with no wordstart matches are |
| 299 | // allowed but not scored. E.g., both inputs 'java script' and 'java cript' will |
| 300 | // match a suggestion titled 'javascript' and score equivalently. |
manukh | 5ff0f58 | 2020-01-14 03:54:13 | [diff] [blame] | 301 | const base::Feature kHistoryQuickProviderAllowButDoNotScoreMidwordTerms{ |
| 302 | "OmniboxHistoryQuickProviderAllowButDoNotScoreMidwordTerms", |
| 303 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 304 | |
manukh | 3bb80c9 | 2020-01-22 00:19:46 | [diff] [blame] | 305 | // If disabled, midword matches are ignored except in the URL host, and input |
| 306 | // terms with no wordstart matches are scored 0, resulting in an overall score |
| 307 | // of 0. If enabled, midword matches are allowed and scored when they begin |
| 308 | // immediately after the previous match ends. E.g. 'java script' will match a |
| 309 | // suggestion titled 'javascript' but the input 'java cript' won't. |
manukh | 5ff0f58 | 2020-01-14 03:54:13 | [diff] [blame] | 310 | const base::Feature kHistoryQuickProviderAllowMidwordContinuations{ |
| 311 | "OmniboxHistoryQuickProviderAllowMidwordContinuations", |
| 312 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 313 | |
Tommy Li | 7c2bf49 | 2019-10-22 19:34:23 | [diff] [blame] | 314 | // If enabled, shows a confirm dialog before removing search suggestions from |
| 315 | // the omnibox. See ConfirmNtpSuggestionRemovals for the NTP equivalent. |
| 316 | const base::Feature kConfirmOmniboxSuggestionRemovals{ |
| 317 | "ConfirmOmniboxSuggestionRemovals", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 318 | |
Kevin Bailey | 104e4449 | 2019-10-31 16:42:32 | [diff] [blame] | 319 | // Feature that enables not counting submatches towards the maximum |
| 320 | // suggestion limit. |
| 321 | const base::Feature kOmniboxLooseMaxLimitOnDedicatedRows{ |
| 322 | "OmniboxLooseMaxLimitOnDedicatedRows", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 323 | |
Orin Jaworski | fc17472 | 2020-01-29 00:32:22 | [diff] [blame] | 324 | // Feature that puts a single row of buttons on suggestions with actionable |
| 325 | // elements like keywords, tab-switch buttons, and Pedals. |
| 326 | const base::Feature kOmniboxSuggestionButtonRow{ |
| 327 | "OmniboxSuggestionButtonRow", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 328 | |
| 329 | // If enabled, allows Tab and Shift+Tab to escape the focus out of the omnibox |
| 330 | // popup. Otherwise, Tab infinitely loops between suggestions in the popup. |
| 331 | const base::Feature kTabKeyCanEscapeOmniboxPopup{ |
| 332 | "TabKeyCanEscapeOmniboxPopup", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 333 | |
Tommy Li | 1f1fc4a | 2020-01-31 21:02:07 | [diff] [blame^] | 334 | // If enabled, uses WebUI to render the omnibox suggestions popup, similar to |
| 335 | // how the NTP "fakebox" is implemented. |
| 336 | const base::Feature kWebUIOmniboxPopup{"WebUIOmniboxPopup", |
| 337 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 338 | |
Brandon Wylie | 1299ff8 | 2020-01-23 02:13:37 | [diff] [blame] | 339 | // When enabled, use Assistant for omnibox voice query recognition instead of |
| 340 | // Android's built-in voice recognition service. Only works on Android. |
| 341 | const base::Feature kOmniboxAssistantVoiceSearch{ |
| 342 | "OmniboxAssistantVoiceSearch", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 343 | |
Tomasz Wiszkowski | d938a111 | 2019-03-06 18:01:57 | [diff] [blame] | 344 | } // namespace omnibox |