blob: 5161af44185344af2f73774e8f1067215f4e83ae [file] [log] [blame]
Tomasz Wiszkowskid938a1112019-03-06 18:01:571// 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
manukc32a8eff2019-07-02 15:48:307#include "build/build_config.h"
8
Tomasz Wiszkowskid938a1112019-03-06 18:01:579namespace omnibox {
10
manuk06717f92020-05-29 15:38:4711const auto enabled_by_default_desktop_only =
12#if defined(OS_ANDROID) || defined(OS_IOS)
13 base::FEATURE_DISABLED_BY_DEFAULT
14#else
15 base::FEATURE_ENABLED_BY_DEFAULT
16#endif
17 ;
18
Tomasz Wiszkowski8a0e0dc42020-02-19 00:06:3719// Allows Omnibox to dynamically adjust number of offered suggestions to fill in
20// the space between Omnibox an the soft keyboard. The number of suggestions
21// shown will be no less than minimum for the platform (eg. 5 for Android).
22const base::Feature kAdaptiveSuggestionsCount{
23 "OmniboxAdaptiveSuggestionsCount", base::FEATURE_DISABLED_BY_DEFAULT};
24
Tomasz Wiszkowskid938a1112019-03-06 18:01:5725// Feature used to hide the scheme from steady state URLs displayed in the
26// toolbar. It is restored during editing.
manuk06717f92020-05-29 15:38:4727const base::Feature kHideFileUrlScheme{
28 "OmniboxUIExperimentHideFileUrlScheme",
29 // Android and iOS don't have the File security chip, and therefore still
30 // need to show the file scheme.
31 enabled_by_default_desktop_only};
Tomasz Wiszkowskid938a1112019-03-06 18:01:5732
manukaddd3c42019-04-09 21:20:5933// Feature used to enable local entity suggestions. Similar to rich entities but
34// but location specific. E.g., typing 'starbucks near' could display the local
35// entity suggestion 'starbucks near disneyland \n starbucks * Anaheim, CA'.
36const base::Feature kOmniboxLocalEntitySuggestions{
37 "OmniboxLocalEntitySuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
38
Tomasz Wiszkowskid938a1112019-03-06 18:01:5739// Feature used to enable swapping the rows on answers.
40const base::Feature kOmniboxReverseAnswers{"OmniboxReverseAnswers",
41 base::FEATURE_DISABLED_BY_DEFAULT};
42
Kevin Bailey7d918b92019-05-02 16:00:1443// Feature used to enable matching short words to bookmarks for suggestions.
44const base::Feature kOmniboxShortBookmarkSuggestions{
45 "OmniboxShortBookmarkSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
46
Tomasz Wiszkowskid938a1112019-03-06 18:01:5747// Feature used to force on the experiment of transmission of tail suggestions
48// from GWS to this client, currently testing for desktop.
49const base::Feature kOmniboxTailSuggestions{
50 "OmniboxTailSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
51
Kevin Bailey37bbf1d2019-08-21 19:23:5552// Feature that enables the tab-switch suggestions corresponding to an open
53// tab, for a button or dedicated suggestion. Enabled by default on Desktop
54// and iOS.
Tomasz Wiszkowskid938a1112019-03-06 18:01:5755const base::Feature kOmniboxTabSwitchSuggestions{
56 "OmniboxTabSwitchSuggestions",
Stepan Khapuginb09801662019-05-07 10:17:0457#if defined(OS_ANDROID)
Tomasz Wiszkowskid938a1112019-03-06 18:01:5758 base::FEATURE_DISABLED_BY_DEFAULT
59#else
60 base::FEATURE_ENABLED_BY_DEFAULT
61#endif
62};
63
Tomasz Wiszkowskid938a1112019-03-06 18:01:5764// Feature used to enable various experiments on keyword mode, UI and
65// suggestions.
66const base::Feature kExperimentalKeywordMode{"OmniboxExperimentalKeywordMode",
67 base::FEATURE_DISABLED_BY_DEFAULT};
68
Tomasz Wiszkowskid938a1112019-03-06 18:01:5769// Feature to enable clipboard provider to suggest searching for copied images.
70const base::Feature kEnableClipboardProviderImageSuggestions{
Robbie Gibson85cef3182019-07-21 15:10:2971 "OmniboxEnableClipboardProviderImageSuggestions",
72#if defined(OS_IOS)
73 base::FEATURE_ENABLED_BY_DEFAULT
74#else
75 base::FEATURE_DISABLED_BY_DEFAULT
76#endif
77};
Tomasz Wiszkowskid938a1112019-03-06 18:01:5778
79// Feature to enable the search provider to send a request to the suggest
80// server on focus. This allows the suggest server to warm up, by, for
81// example, loading per-user models into memory. Having a per-user model
82// in memory allows the suggest server to respond more quickly with
83// personalized suggestions as the user types.
84const base::Feature kSearchProviderWarmUpOnFocus{
85 "OmniboxWarmUpSearchProviderOnFocus",
86#if defined(OS_IOS)
87 base::FEATURE_DISABLED_BY_DEFAULT
88#else
89 base::FEATURE_ENABLED_BY_DEFAULT
90#endif
91};
92
Tomasz Wiszkowskid938a1112019-03-06 18:01:5793// Feature used to display the title of the current URL match.
94const base::Feature kDisplayTitleForCurrentUrl{
95 "OmniboxDisplayTitleForCurrentUrl",
96#if !defined(OS_IOS)
97 base::FEATURE_ENABLED_BY_DEFAULT
98#else
99 base::FEATURE_DISABLED_BY_DEFAULT
100#endif
101};
102
Tomasz Wiszkowskid938a1112019-03-06 18:01:57103// Feature used to always swap the title and URL.
104const base::Feature kUIExperimentSwapTitleAndUrl{
105 "OmniboxUIExperimentSwapTitleAndUrl",
106#if defined(OS_IOS) || defined(OS_ANDROID)
107 base::FEATURE_DISABLED_BY_DEFAULT
108#else
109 base::FEATURE_ENABLED_BY_DEFAULT
110#endif
111};
112
Tomasz Wiszkowskid938a1112019-03-06 18:01:57113// Feature used to enable speculatively starting a service worker associated
114// with the destination of the default match when the user's input looks like a
115// query.
116const base::Feature kSpeculativeServiceWorkerStartOnQueryInput{
117 "OmniboxSpeculativeServiceWorkerStartOnQueryInput",
118 base::FEATURE_ENABLED_BY_DEFAULT
119};
120
121// Feature used to fetch document suggestions.
122const base::Feature kDocumentProvider{"OmniboxDocumentProvider",
123 base::FEATURE_DISABLED_BY_DEFAULT};
124
manuk4542e232019-09-11 19:27:35125// Feature used to autocomplete bookmark, history, and document suggestions when
126// the user input is a prefix of their titles, as opposed to their URLs.
127const base::Feature kAutocompleteTitles{"OmniboxAutocompleteTitles",
128 base::FEATURE_DISABLED_BY_DEFAULT};
129
Patrick Noland2b4968b2019-06-27 14:50:26130// Returns whether IsInstantExtendedAPIEnabled should be ignored when deciding
131// the number of Google-provided search suggestions.
132const base::Feature kOmniboxDisableInstantExtendedLimit{
Ender0c8b5b42020-05-26 22:52:51133 "OmniboxDisableInstantExtendedLimit",
134#if defined(OS_ANDROID)
135 base::FEATURE_ENABLED_BY_DEFAULT
136#else
137 base::FEATURE_DISABLED_BY_DEFAULT
138#endif
139};
Patrick Noland2b4968b2019-06-27 14:50:26140
Brandon Wylief8dd4e82019-07-11 16:39:57141// Show the search engine logo in the omnibox on Android (desktop already does
142// this).
143const base::Feature kOmniboxSearchEngineLogo{"OmniboxSearchEngineLogo",
Brandon Wyliee480f8252020-07-28 19:25:01144 base::FEATURE_ENABLED_BY_DEFAULT};
Brandon Wylief8dd4e82019-07-11 16:39:57145
manukbf3c8ab2019-10-24 16:52:08146// Feature used to allow users to remove suggestions from clipboard.
147const base::Feature kOmniboxRemoveSuggestionsFromClipboard{
Gang Wu8f978362020-05-05 17:53:03148 "OmniboxRemoveSuggestionsFromClipboard",
149#if defined(OS_ANDROID)
150 base::FEATURE_ENABLED_BY_DEFAULT
151#else
152 base::FEATURE_DISABLED_BY_DEFAULT
153#endif
154};
manukbf3c8ab2019-10-24 16:52:08155
manukbf3c8ab2019-10-24 16:52:08156// Feature to debounce drive requests from the document provider.
157const base::Feature kDebounceDocumentProvider{
158 "OmniboxDebounceDocumentProvider", base::FEATURE_DISABLED_BY_DEFAULT};
159
Tommy Li6390ecc2019-09-06 21:08:57160// Preserves the default match against change when providers return results
161// asynchronously. This prevents the default match from changing after the user
162// finishes typing. Without this feature, if the default match is updated right
163// when the user presses Enter, the user may go to a surprising destination.
164const base::Feature kOmniboxPreserveDefaultMatchAgainstAsyncUpdate{
165 "OmniboxPreserveDefaultMatchAgainstAsyncUpdate",
Tommy Li2b9db032020-03-02 22:12:14166 base::FEATURE_ENABLED_BY_DEFAULT};
Tommy Li6390ecc2019-09-06 21:08:57167
manuk7b89f6642019-11-08 19:25:24168// Demotes the relevance scores when comparing suggestions based on the
169// suggestion's |AutocompleteMatchType| and the user's |PageClassification|.
170// This feature's main job is to contain the DemoteByType parameter.
171const base::Feature kOmniboxDemoteByType{"OmniboxDemoteByType",
172 base::FEATURE_DISABLED_BY_DEFAULT};
173
Justin Donnelly477e35e2020-04-02 14:40:00174// A special flag, enabled by default, that can be used to disable all new
175// search features (e.g. zero suggest).
176const base::Feature kNewSearchFeatures{"OmniboxNewSearchFeatures",
177 base::FEATURE_ENABLED_BY_DEFAULT};
178
manuk89d73982020-05-12 01:17:34179// Feature used to cap max zero suggestions shown according to the param
180// OmniboxMaxZeroSuggestMatches. If omitted,
181// OmniboxUIExperimentMaxAutocompleteMatches will be used instead. If present,
182// OmniboxMaxZeroSuggestMatches will override
183// OmniboxUIExperimentMaxAutocompleteMatches when |from_omnibox_focus| is true.
184const base::Feature kMaxZeroSuggestMatches{"OmniboxMaxZeroSuggestMatches",
185 base::FEATURE_DISABLED_BY_DEFAULT};
186
manuk89d73982020-05-12 01:17:34187// Feature used to cap max suggestions shown according to the params
188// UIMaxAutocompleteMatches and UIMaxAutocompleteMatchesByProvider.
189const base::Feature kUIExperimentMaxAutocompleteMatches{
190 "OmniboxUIExperimentMaxAutocompleteMatches",
191 base::FEATURE_DISABLED_BY_DEFAULT};
192
Justin Donnelly444aa062020-05-14 23:27:20193// Feature used to cap the number of URL-type matches shown within the
194// Omnibox. If enabled, the number of URL-type matches is limited (unless
195// there are no more non-URL matches available.) If enabled, there is a
196// companion parameter - OmniboxMaxURLMatches - which specifies the maximum
197// desired number of URL-type matches.
198const bool kOmniboxMaxURLMatchesEnabledByDefault =
199#if defined(OS_IOS) || defined(OS_ANDROID)
200 false;
201#else
202 true;
203#endif
204const base::Feature kOmniboxMaxURLMatches{
205 "OmniboxMaxURLMatches", kOmniboxMaxURLMatchesEnabledByDefault
206 ? base::FEATURE_ENABLED_BY_DEFAULT
207 : base::FEATURE_DISABLED_BY_DEFAULT};
208
manuk4e2979d2020-07-08 23:29:28209// Feature used to cap max suggestions to a dynamic limit based on how many URLs
210// would be shown. E.g., show up to 10 suggestions if doing so would display no
211// URLs; else show up to 8 suggestions if doing so would include 1 or more URLs.
212const base::Feature kDynamicMaxAutocomplete{"OmniboxDynamicMaxAutocomplete",
213 base::FEATURE_DISABLED_BY_DEFAULT};
214
Tommy Li354a0e42020-07-30 16:46:14215// If enabled, when the user clears the whole omnibox text (i.e. via Backspace),
216// Chrome will request ZeroSuggest suggestions. Note, this flag merely adds a
217// new ZeroSuggest entrypoint. ZeroSuggest still must be enabled on the proper
218// page classification (either by default or via a separate flag), or else this
219// flag will do nothing.
220const base::Feature kClobberIsZeroSuggestEntrypoint{
221 "OmniboxClobberIsZeroSuggestEntrypoint", base::FEATURE_DISABLED_BY_DEFAULT};
222
Tommy Lie8ecbf8b2020-08-13 00:19:05223// Disable this flag to prevent focus gestures (e.g. clicks, taps, Ctrl+L) from
224// triggering ZeroSuggest for the OTHER page classification (contextual web).
225// This is used to experiment with alternate ZeroSuggest triggers like clobber.
226//
227// Note, this flag is Enabled by default, as on-focus is the standard
228// ZeroSuggest trigger. This flag doesn't affect the NTP or SERP.
229// We don't want to accidentally unlaunch on-focus NTP ZeroSuggest.
230const base::Feature kFocusGestureTriggersContextualWebZeroSuggest{
231 "OmniboxFocusGestureTriggersContextualWebZeroSuggest",
232 base::FEATURE_ENABLED_BY_DEFAULT};
233
Moe Ahmadi38b04ce3d2020-07-09 22:14:15234// If enabled, ranks the local zero-prefix suggestions based on frecency
235// (combined frequency and recency).
236const base::Feature kOmniboxLocalZeroSuggestFrecencyRanking{
237 "OmniboxLocalZeroSuggestFrecencyRanking",
238 base::FEATURE_DISABLED_BY_DEFAULT};
239
Moe Ahmadi72c8e812020-07-10 21:34:23240// Used to adjust the age threshold since the last visit in order to consider a
241// normalized keyword search term as a zero-prefix suggestion. If disabled, the
242// default value of history::kLowQualityMatchAgeLimitInDays is used. If enabled,
243// the age threshold is determined by this feature's companion parameter,
244// OmniboxFieldTrial::kOmniboxLocalZeroSuggestAgeThresholdParam.
245const base::Feature kOmniboxLocalZeroSuggestAgeThreshold{
246 "OmniboxLocalZeroSuggestAgeThreshold", base::FEATURE_DISABLED_BY_DEFAULT};
247
Tommy Lib4b3bb5b2020-05-01 02:34:56248// Feature that configures ZeroSuggestProvider using the "ZeroSuggestVariant"
249// per-page-classification parameter.
Tommy Li55784022020-04-28 20:58:18250//
Tommy Lib4b3bb5b2020-05-01 02:34:56251// Generally speaking - do NOT use this for future server-side experiments.
252// Instead, create your a new narrowly scoped base::Feature for each experiment.
253//
254// Because our Field Trial system can only configure this base::Feature in a
255// single study, and does not merge parameters, using this creates conflicts.
Tommy C. Li090105512019-05-16 22:00:56256const base::Feature kOnFocusSuggestions{"OmniboxOnFocusSuggestions",
257 base::FEATURE_ENABLED_BY_DEFAULT};
258
Tommy Li55784022020-04-28 20:58:18259// Enables on-focus suggestions on the Open Web, that are contextual to the
260// current URL. Will only work if user is signed-in and syncing, or is
261// otherwise eligible to send the current page URL to the suggest server.
Tommy Lie0a3a992020-05-29 21:32:05262//
263// There's multiple flags here for multiple backend configurations:
264// - Default (search queries)
265// - On-Content Suggestions
Tommy Li55784022020-04-28 20:58:18266const base::Feature kOnFocusSuggestionsContextualWeb{
267 "OmniboxOnFocusSuggestionsContextualWeb",
268 base::FEATURE_DISABLED_BY_DEFAULT};
Tommy Lie0a3a992020-05-29 21:32:05269const base::Feature kOnFocusSuggestionsContextualWebOnContent{
270 "OmniboxOnFocusSuggestionsContextualWebOnContent",
271 base::FEATURE_DISABLED_BY_DEFAULT};
Tommy Li55784022020-04-28 20:58:18272
Moe Ahmadi31147bc2020-06-02 19:07:56273// Enables Reactive Zero-Prefix Suggestions (rZPS) on the NTP, for the Omnibox
274// and Realbox respectively. Note: enabling this feature merely makes
Tommy Lib4b3bb5b2020-05-01 02:34:56275// ZeroSuggestProvider send the request. There are additional requirements,
Moe Ahmadi31147bc2020-06-02 19:07:56276// like the user being signed-in, and the suggest server having rZPS enabled.
277const base::Feature kReactiveZeroSuggestionsOnNTPOmnibox{
278 "OmniboxReactiveZeroSuggestionsOnNTPOmnibox",
Tommy Lib4b3bb5b2020-05-01 02:34:56279 base::FEATURE_DISABLED_BY_DEFAULT};
Moe Ahmadi31147bc2020-06-02 19:07:56280const base::Feature kReactiveZeroSuggestionsOnNTPRealbox{
281 "OmniboxReactiveZeroSuggestionsOnNTPRealbox",
Tommy Lib4b3bb5b2020-05-01 02:34:56282 base::FEATURE_DISABLED_BY_DEFAULT};
283
Tomasz Wiszkowski947f6d0d2019-03-15 22:27:25284// Allow suggestions to be shown to the user on the New Tab Page upon focusing
285// URL bar (the omnibox).
286const base::Feature kZeroSuggestionsOnNTP{"OmniboxZeroSuggestionsOnNTP",
287 base::FEATURE_DISABLED_BY_DEFAULT};
288
Moe Ahmadi4005ec92019-09-09 16:55:53289// Allow suggestions to be shown to the user on the New Tab Page upon focusing
290// the real search box.
291const base::Feature kZeroSuggestionsOnNTPRealbox{
292 "OmniboxZeroSuggestionsOnNTPRealbox", base::FEATURE_DISABLED_BY_DEFAULT};
293
Tommy Li1d03b9bf2019-09-23 23:46:34294// Allow on-focus query refinements to be shown on the default SERP.
295const base::Feature kZeroSuggestionsOnSERP{"OmniboxZeroSuggestionsOnSERP",
296 base::FEATURE_ENABLED_BY_DEFAULT};
297
Ce Chenc8d803a2020-04-27 09:31:33298// Features to provide non personalized head search suggestion from a compact
299// on device model. More specifically, feature name with suffix Incognito /
300// NonIncognito will only controls behaviors under incognito / non-incognito
301// mode respectively.
302const base::Feature kOnDeviceHeadProviderIncognito{
303 "OmniboxOnDeviceHeadProviderIncognito", base::FEATURE_DISABLED_BY_DEFAULT};
304const base::Feature kOnDeviceHeadProviderNonIncognito{
305 "OmniboxOnDeviceHeadProviderNonIncognito",
306 base::FEATURE_DISABLED_BY_DEFAULT};
307
Justin Donnellyf2703482019-10-24 21:42:15308// If enabled, changes the way Google-provided search suggestions are scored by
309// the backend. Note that this Feature is only used for triggering a server-
310// side experiment config that will send experiment IDs to the backend. It is
311// not referred to in any of the Chromium code.
312const base::Feature kOmniboxExperimentalSuggestScoring{
313 "OmniboxExperimentalSuggestScoring", base::FEATURE_DISABLED_BY_DEFAULT};
314
manukh3bb80c92020-01-22 00:19:46315// If disabled, terms with no wordstart matches disqualify the suggestion unless
316// they occur in the URL host. If enabled, terms with no wordstart matches are
317// allowed but not scored. E.g., both inputs 'java script' and 'java cript' will
318// match a suggestion titled 'javascript' and score equivalently.
manukh5ff0f582020-01-14 03:54:13319const base::Feature kHistoryQuickProviderAllowButDoNotScoreMidwordTerms{
320 "OmniboxHistoryQuickProviderAllowButDoNotScoreMidwordTerms",
manuk8f1b1e1a2020-07-28 22:02:13321 base::FEATURE_ENABLED_BY_DEFAULT};
manukh5ff0f582020-01-14 03:54:13322
manukh3bb80c92020-01-22 00:19:46323// If disabled, midword matches are ignored except in the URL host, and input
324// terms with no wordstart matches are scored 0, resulting in an overall score
325// of 0. If enabled, midword matches are allowed and scored when they begin
326// immediately after the previous match ends. E.g. 'java script' will match a
327// suggestion titled 'javascript' but the input 'java cript' won't.
manukh5ff0f582020-01-14 03:54:13328const base::Feature kHistoryQuickProviderAllowMidwordContinuations{
329 "OmniboxHistoryQuickProviderAllowMidwordContinuations",
manuk8f1b1e1a2020-07-28 22:02:13330 base::FEATURE_ENABLED_BY_DEFAULT};
manukh5ff0f582020-01-14 03:54:13331
Tomasz Wiszkowski70fb35f2020-02-27 00:39:19332// If enabled, shows slightly more compact suggestions, allowing the
333// kAdaptiveSuggestionsCount feature to fit more suggestions on screen.
334const base::Feature kCompactSuggestions{"OmniboxCompactSuggestions",
335 base::FEATURE_DISABLED_BY_DEFAULT};
336
Tomasz Wiszkowski70fb35f2020-02-27 00:39:19337// If enabled, defers keyboard popup when user highlights the omnibox until
338// the user taps the Omnibox again.
339extern const base::Feature kDeferredKeyboardPopup{
340 "OmniboxDeferredKeyboardPopup", base::FEATURE_DISABLED_BY_DEFAULT};
341
manuk695f9d4532020-03-18 19:22:08342// If enabled, expands autocompletion to possibly (depending on params) include
343// suggestion titles and non-prefixes as opposed to be restricted to URL
344// prefixes. Will also adjust the location bar UI and omnibox text selection to
345// accommodate the autocompletions.
346const base::Feature kRichAutocompletion{"OmniboxRichAutocompletion",
347 base::FEATURE_DISABLED_BY_DEFAULT};
348
Filip Gorski05279842020-06-12 12:49:02349// Feature that enables Search Ready Omnibox in invognito.
350const base::Feature kOmniboxSearchReadyIncognito{
351 "OmniboxSearchReadyIncognito", base::FEATURE_DISABLED_BY_DEFAULT};
352
Orin Jaworskifc174722020-01-29 00:32:22353// Feature that puts a single row of buttons on suggestions with actionable
354// elements like keywords, tab-switch buttons, and Pedals.
355const base::Feature kOmniboxSuggestionButtonRow{
356 "OmniboxSuggestionButtonRow", base::FEATURE_DISABLED_BY_DEFAULT};
357
Justin Donnelly5726ecf2020-08-14 00:53:52358// Feature used to enable Pedal suggestions.
359const base::Feature kOmniboxPedalSuggestions{"OmniboxPedalSuggestions",
360 base::FEATURE_DISABLED_BY_DEFAULT};
361
362// Feature used to enable the keyword search button.
363const base::Feature kOmniboxKeywordSearchButton{
364 "OmniboxKeywordSearchButton", base::FEATURE_DISABLED_BY_DEFAULT};
365
Filip Gorski927709ea2020-04-30 15:58:37366// Enables using an Android RecyclerView to render the suggestions dropdown
367// instead of a ListView.
368const base::Feature kOmniboxSuggestionsRecyclerView{
369 "OmniboxSuggestionsRecyclerView", base::FEATURE_DISABLED_BY_DEFAULT};
370
Tomasz Wiszkowski5ec4f532020-05-19 21:28:10371// Allows long Omnibox suggestions to wrap around to next line.
372const base::Feature kOmniboxSuggestionsWrapAround{
373 "OmniboxSuggestionsWrapAround", base::FEATURE_DISABLED_BY_DEFAULT};
374
Tommy Li1f1fc4a2020-01-31 21:02:07375// If enabled, uses WebUI to render the omnibox suggestions popup, similar to
376// how the NTP "fakebox" is implemented.
377const base::Feature kWebUIOmniboxPopup{"WebUIOmniboxPopup",
378 base::FEATURE_DISABLED_BY_DEFAULT};
379
Brandon Wylie1299ff82020-01-23 02:13:37380// When enabled, use Assistant for omnibox voice query recognition instead of
381// Android's built-in voice recognition service. Only works on Android.
382const base::Feature kOmniboxAssistantVoiceSearch{
383 "OmniboxAssistantVoiceSearch", base::FEATURE_DISABLED_BY_DEFAULT};
384
Livvie Lin30a9f9d2020-03-17 19:45:19385// When enabled, provides an omnibox context menu option that prevents URL
386// elisions.
387const base::Feature kOmniboxContextMenuShowFullUrls{
388 "OmniboxContextMenuShowFullUrls", base::FEATURE_DISABLED_BY_DEFAULT};
389
Emily Stark4bca290ac2020-06-29 21:02:30390// Feature used to reveal the path, query and ref from steady state URLs
391// on hover.
392const base::Feature kRevealSteadyStateUrlPathQueryAndRefOnHover{
393 "OmniboxUIExperimentRevealSteadyStateUrlPathQueryAndRefOnHover",
394 base::FEATURE_DISABLED_BY_DEFAULT};
395
396// Feature used to hide the path, query and ref from steady state URLs
397// on interaction with the page.
398const base::Feature kHideSteadyStateUrlPathQueryAndRefOnInteraction{
399 "OmniboxUIExperimentHideSteadyStateUrlPathQueryAndRefOnInteraction",
400 base::FEATURE_DISABLED_BY_DEFAULT};
401
Joe DeBlasio6d5806e12020-08-06 17:27:18402// Feature used to possibly elide not just the path, query, and ref from steady
403// state URLs, but also subdomains beyond the registrable domain, depending on
404// whether the hostname fails lookalike checks. Has no effect unless
Emily Stark4bca290ac2020-06-29 21:02:30405// kRevealSteadyStateUrlPathQueryAndRefOnHover and/or
406// kHideSteadyStateUrlPathQueryAndRefOnInteraction are enabled.
Joe DeBlasio6d5806e12020-08-06 17:27:18407const base::Feature kMaybeElideToRegistrableDomain{
Emily Stark4bca290ac2020-06-29 21:02:30408 "OmniboxUIExperimentElideToRegistrableDomain",
409 base::FEATURE_DISABLED_BY_DEFAULT};
410
Tomasz Wiszkowskid938a1112019-03-06 18:01:57411} // namespace omnibox