blob: b3ca61312def6ab97faac06948401b6ba0aeced2 [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
69// Feature used to enable Pedal suggestions.
70const base::Feature kOmniboxPedalSuggestions{"OmniboxPedalSuggestions",
71 base::FEATURE_DISABLED_BY_DEFAULT};
72
Tomasz Wiszkowskid938a1112019-03-06 18:01:5773// Feature to enable clipboard provider to suggest searching for copied images.
74const base::Feature kEnableClipboardProviderImageSuggestions{
Robbie Gibson85cef3182019-07-21 15:10:2975 "OmniboxEnableClipboardProviderImageSuggestions",
76#if defined(OS_IOS)
77 base::FEATURE_ENABLED_BY_DEFAULT
78#else
79 base::FEATURE_DISABLED_BY_DEFAULT
80#endif
81};
Tomasz Wiszkowskid938a1112019-03-06 18:01:5782
83// Feature to enable the search provider to send a request to the suggest
84// server on focus. This allows the suggest server to warm up, by, for
85// example, loading per-user models into memory. Having a per-user model
86// in memory allows the suggest server to respond more quickly with
87// personalized suggestions as the user types.
88const base::Feature kSearchProviderWarmUpOnFocus{
89 "OmniboxWarmUpSearchProviderOnFocus",
90#if defined(OS_IOS)
91 base::FEATURE_DISABLED_BY_DEFAULT
92#else
93 base::FEATURE_ENABLED_BY_DEFAULT
94#endif
95};
96
Tomasz Wiszkowskid938a1112019-03-06 18:01:5797// Feature used to display the title of the current URL match.
98const base::Feature kDisplayTitleForCurrentUrl{
99 "OmniboxDisplayTitleForCurrentUrl",
100#if !defined(OS_IOS)
101 base::FEATURE_ENABLED_BY_DEFAULT
102#else
103 base::FEATURE_DISABLED_BY_DEFAULT
104#endif
105};
106
Tomasz Wiszkowskid938a1112019-03-06 18:01:57107// Feature used to always swap the title and URL.
108const base::Feature kUIExperimentSwapTitleAndUrl{
109 "OmniboxUIExperimentSwapTitleAndUrl",
110#if defined(OS_IOS) || defined(OS_ANDROID)
111 base::FEATURE_DISABLED_BY_DEFAULT
112#else
113 base::FEATURE_ENABLED_BY_DEFAULT
114#endif
115};
116
Tomasz Wiszkowskid938a1112019-03-06 18:01:57117// Feature used to enable speculatively starting a service worker associated
118// with the destination of the default match when the user's input looks like a
119// query.
120const base::Feature kSpeculativeServiceWorkerStartOnQueryInput{
121 "OmniboxSpeculativeServiceWorkerStartOnQueryInput",
122 base::FEATURE_ENABLED_BY_DEFAULT
123};
124
125// Feature used to fetch document suggestions.
126const base::Feature kDocumentProvider{"OmniboxDocumentProvider",
127 base::FEATURE_DISABLED_BY_DEFAULT};
128
manuk4542e232019-09-11 19:27:35129// Feature used to autocomplete bookmark, history, and document suggestions when
130// the user input is a prefix of their titles, as opposed to their URLs.
131const base::Feature kAutocompleteTitles{"OmniboxAutocompleteTitles",
132 base::FEATURE_DISABLED_BY_DEFAULT};
133
Patrick Noland2b4968b2019-06-27 14:50:26134// Returns whether IsInstantExtendedAPIEnabled should be ignored when deciding
135// the number of Google-provided search suggestions.
136const base::Feature kOmniboxDisableInstantExtendedLimit{
Ender0c8b5b42020-05-26 22:52:51137 "OmniboxDisableInstantExtendedLimit",
138#if defined(OS_ANDROID)
139 base::FEATURE_ENABLED_BY_DEFAULT
140#else
141 base::FEATURE_DISABLED_BY_DEFAULT
142#endif
143};
Patrick Noland2b4968b2019-06-27 14:50:26144
Brandon Wylief8dd4e82019-07-11 16:39:57145// Show the search engine logo in the omnibox on Android (desktop already does
146// this).
147const base::Feature kOmniboxSearchEngineLogo{"OmniboxSearchEngineLogo",
Brandon Wyliee480f8252020-07-28 19:25:01148 base::FEATURE_ENABLED_BY_DEFAULT};
Brandon Wylief8dd4e82019-07-11 16:39:57149
manukbf3c8ab2019-10-24 16:52:08150// Feature used to allow users to remove suggestions from clipboard.
151const base::Feature kOmniboxRemoveSuggestionsFromClipboard{
Gang Wu8f978362020-05-05 17:53:03152 "OmniboxRemoveSuggestionsFromClipboard",
153#if defined(OS_ANDROID)
154 base::FEATURE_ENABLED_BY_DEFAULT
155#else
156 base::FEATURE_DISABLED_BY_DEFAULT
157#endif
158};
manukbf3c8ab2019-10-24 16:52:08159
manukbf3c8ab2019-10-24 16:52:08160// Feature to debounce drive requests from the document provider.
161const base::Feature kDebounceDocumentProvider{
162 "OmniboxDebounceDocumentProvider", base::FEATURE_DISABLED_BY_DEFAULT};
163
Tommy Li6390ecc2019-09-06 21:08:57164// Preserves the default match against change when providers return results
165// asynchronously. This prevents the default match from changing after the user
166// finishes typing. Without this feature, if the default match is updated right
167// when the user presses Enter, the user may go to a surprising destination.
168const base::Feature kOmniboxPreserveDefaultMatchAgainstAsyncUpdate{
169 "OmniboxPreserveDefaultMatchAgainstAsyncUpdate",
Tommy Li2b9db032020-03-02 22:12:14170 base::FEATURE_ENABLED_BY_DEFAULT};
Tommy Li6390ecc2019-09-06 21:08:57171
manuk7b89f6642019-11-08 19:25:24172// Demotes the relevance scores when comparing suggestions based on the
173// suggestion's |AutocompleteMatchType| and the user's |PageClassification|.
174// This feature's main job is to contain the DemoteByType parameter.
175const base::Feature kOmniboxDemoteByType{"OmniboxDemoteByType",
176 base::FEATURE_DISABLED_BY_DEFAULT};
177
Justin Donnelly477e35e2020-04-02 14:40:00178// A special flag, enabled by default, that can be used to disable all new
179// search features (e.g. zero suggest).
180const base::Feature kNewSearchFeatures{"OmniboxNewSearchFeatures",
181 base::FEATURE_ENABLED_BY_DEFAULT};
182
manuk89d73982020-05-12 01:17:34183// Feature used to cap max zero suggestions shown according to the param
184// OmniboxMaxZeroSuggestMatches. If omitted,
185// OmniboxUIExperimentMaxAutocompleteMatches will be used instead. If present,
186// OmniboxMaxZeroSuggestMatches will override
187// OmniboxUIExperimentMaxAutocompleteMatches when |from_omnibox_focus| is true.
188const base::Feature kMaxZeroSuggestMatches{"OmniboxMaxZeroSuggestMatches",
189 base::FEATURE_DISABLED_BY_DEFAULT};
190
manuk89d73982020-05-12 01:17:34191// Feature used to cap max suggestions shown according to the params
192// UIMaxAutocompleteMatches and UIMaxAutocompleteMatchesByProvider.
193const base::Feature kUIExperimentMaxAutocompleteMatches{
194 "OmniboxUIExperimentMaxAutocompleteMatches",
195 base::FEATURE_DISABLED_BY_DEFAULT};
196
Justin Donnelly444aa062020-05-14 23:27:20197// Feature used to cap the number of URL-type matches shown within the
198// Omnibox. If enabled, the number of URL-type matches is limited (unless
199// there are no more non-URL matches available.) If enabled, there is a
200// companion parameter - OmniboxMaxURLMatches - which specifies the maximum
201// desired number of URL-type matches.
202const bool kOmniboxMaxURLMatchesEnabledByDefault =
203#if defined(OS_IOS) || defined(OS_ANDROID)
204 false;
205#else
206 true;
207#endif
208const base::Feature kOmniboxMaxURLMatches{
209 "OmniboxMaxURLMatches", kOmniboxMaxURLMatchesEnabledByDefault
210 ? base::FEATURE_ENABLED_BY_DEFAULT
211 : base::FEATURE_DISABLED_BY_DEFAULT};
212
manuk4e2979d2020-07-08 23:29:28213// Feature used to cap max suggestions to a dynamic limit based on how many URLs
214// would be shown. E.g., show up to 10 suggestions if doing so would display no
215// URLs; else show up to 8 suggestions if doing so would include 1 or more URLs.
216const base::Feature kDynamicMaxAutocomplete{"OmniboxDynamicMaxAutocomplete",
217 base::FEATURE_DISABLED_BY_DEFAULT};
218
Tommy Li354a0e42020-07-30 16:46:14219// If enabled, when the user clears the whole omnibox text (i.e. via Backspace),
220// Chrome will request ZeroSuggest suggestions. Note, this flag merely adds a
221// new ZeroSuggest entrypoint. ZeroSuggest still must be enabled on the proper
222// page classification (either by default or via a separate flag), or else this
223// flag will do nothing.
224const base::Feature kClobberIsZeroSuggestEntrypoint{
225 "OmniboxClobberIsZeroSuggestEntrypoint", base::FEATURE_DISABLED_BY_DEFAULT};
226
Tommy Lie8ecbf8b2020-08-13 00:19:05227// Disable this flag to prevent focus gestures (e.g. clicks, taps, Ctrl+L) from
228// triggering ZeroSuggest for the OTHER page classification (contextual web).
229// This is used to experiment with alternate ZeroSuggest triggers like clobber.
230//
231// Note, this flag is Enabled by default, as on-focus is the standard
232// ZeroSuggest trigger. This flag doesn't affect the NTP or SERP.
233// We don't want to accidentally unlaunch on-focus NTP ZeroSuggest.
234const base::Feature kFocusGestureTriggersContextualWebZeroSuggest{
235 "OmniboxFocusGestureTriggersContextualWebZeroSuggest",
236 base::FEATURE_ENABLED_BY_DEFAULT};
237
Moe Ahmadi38b04ce3d2020-07-09 22:14:15238// If enabled, ranks the local zero-prefix suggestions based on frecency
239// (combined frequency and recency).
240const base::Feature kOmniboxLocalZeroSuggestFrecencyRanking{
241 "OmniboxLocalZeroSuggestFrecencyRanking",
242 base::FEATURE_DISABLED_BY_DEFAULT};
243
Moe Ahmadi72c8e812020-07-10 21:34:23244// Used to adjust the age threshold since the last visit in order to consider a
245// normalized keyword search term as a zero-prefix suggestion. If disabled, the
246// default value of history::kLowQualityMatchAgeLimitInDays is used. If enabled,
247// the age threshold is determined by this feature's companion parameter,
248// OmniboxFieldTrial::kOmniboxLocalZeroSuggestAgeThresholdParam.
249const base::Feature kOmniboxLocalZeroSuggestAgeThreshold{
250 "OmniboxLocalZeroSuggestAgeThreshold", base::FEATURE_DISABLED_BY_DEFAULT};
251
Tommy Lib4b3bb5b2020-05-01 02:34:56252// Feature that configures ZeroSuggestProvider using the "ZeroSuggestVariant"
253// per-page-classification parameter.
Tommy Li55784022020-04-28 20:58:18254//
Tommy Lib4b3bb5b2020-05-01 02:34:56255// Generally speaking - do NOT use this for future server-side experiments.
256// Instead, create your a new narrowly scoped base::Feature for each experiment.
257//
258// Because our Field Trial system can only configure this base::Feature in a
259// single study, and does not merge parameters, using this creates conflicts.
Tommy C. Li090105512019-05-16 22:00:56260const base::Feature kOnFocusSuggestions{"OmniboxOnFocusSuggestions",
261 base::FEATURE_ENABLED_BY_DEFAULT};
262
Tommy Li55784022020-04-28 20:58:18263// Enables on-focus suggestions on the Open Web, that are contextual to the
264// current URL. Will only work if user is signed-in and syncing, or is
265// otherwise eligible to send the current page URL to the suggest server.
Tommy Lie0a3a992020-05-29 21:32:05266//
267// There's multiple flags here for multiple backend configurations:
268// - Default (search queries)
269// - On-Content Suggestions
Tommy Li55784022020-04-28 20:58:18270const base::Feature kOnFocusSuggestionsContextualWeb{
271 "OmniboxOnFocusSuggestionsContextualWeb",
272 base::FEATURE_DISABLED_BY_DEFAULT};
Tommy Lie0a3a992020-05-29 21:32:05273const base::Feature kOnFocusSuggestionsContextualWebOnContent{
274 "OmniboxOnFocusSuggestionsContextualWebOnContent",
275 base::FEATURE_DISABLED_BY_DEFAULT};
Tommy Li55784022020-04-28 20:58:18276
Moe Ahmadi31147bc2020-06-02 19:07:56277// Enables Reactive Zero-Prefix Suggestions (rZPS) on the NTP, for the Omnibox
278// and Realbox respectively. Note: enabling this feature merely makes
Tommy Lib4b3bb5b2020-05-01 02:34:56279// ZeroSuggestProvider send the request. There are additional requirements,
Moe Ahmadi31147bc2020-06-02 19:07:56280// like the user being signed-in, and the suggest server having rZPS enabled.
281const base::Feature kReactiveZeroSuggestionsOnNTPOmnibox{
282 "OmniboxReactiveZeroSuggestionsOnNTPOmnibox",
Tommy Lib4b3bb5b2020-05-01 02:34:56283 base::FEATURE_DISABLED_BY_DEFAULT};
Moe Ahmadi31147bc2020-06-02 19:07:56284const base::Feature kReactiveZeroSuggestionsOnNTPRealbox{
285 "OmniboxReactiveZeroSuggestionsOnNTPRealbox",
Tommy Lib4b3bb5b2020-05-01 02:34:56286 base::FEATURE_DISABLED_BY_DEFAULT};
287
Tomasz Wiszkowski947f6d0d2019-03-15 22:27:25288// Allow suggestions to be shown to the user on the New Tab Page upon focusing
289// URL bar (the omnibox).
290const base::Feature kZeroSuggestionsOnNTP{"OmniboxZeroSuggestionsOnNTP",
291 base::FEATURE_DISABLED_BY_DEFAULT};
292
Moe Ahmadi4005ec92019-09-09 16:55:53293// Allow suggestions to be shown to the user on the New Tab Page upon focusing
294// the real search box.
295const base::Feature kZeroSuggestionsOnNTPRealbox{
296 "OmniboxZeroSuggestionsOnNTPRealbox", base::FEATURE_DISABLED_BY_DEFAULT};
297
Tommy Li1d03b9bf2019-09-23 23:46:34298// Allow on-focus query refinements to be shown on the default SERP.
299const base::Feature kZeroSuggestionsOnSERP{"OmniboxZeroSuggestionsOnSERP",
300 base::FEATURE_ENABLED_BY_DEFAULT};
301
Ce Chenc8d803a2020-04-27 09:31:33302// Features to provide non personalized head search suggestion from a compact
303// on device model. More specifically, feature name with suffix Incognito /
304// NonIncognito will only controls behaviors under incognito / non-incognito
305// mode respectively.
306const base::Feature kOnDeviceHeadProviderIncognito{
307 "OmniboxOnDeviceHeadProviderIncognito", base::FEATURE_DISABLED_BY_DEFAULT};
308const base::Feature kOnDeviceHeadProviderNonIncognito{
309 "OmniboxOnDeviceHeadProviderNonIncognito",
310 base::FEATURE_DISABLED_BY_DEFAULT};
311
Justin Donnellyf2703482019-10-24 21:42:15312// If enabled, changes the way Google-provided search suggestions are scored by
313// the backend. Note that this Feature is only used for triggering a server-
314// side experiment config that will send experiment IDs to the backend. It is
315// not referred to in any of the Chromium code.
316const base::Feature kOmniboxExperimentalSuggestScoring{
317 "OmniboxExperimentalSuggestScoring", base::FEATURE_DISABLED_BY_DEFAULT};
318
manukh3bb80c92020-01-22 00:19:46319// If disabled, terms with no wordstart matches disqualify the suggestion unless
320// they occur in the URL host. If enabled, terms with no wordstart matches are
321// allowed but not scored. E.g., both inputs 'java script' and 'java cript' will
322// match a suggestion titled 'javascript' and score equivalently.
manukh5ff0f582020-01-14 03:54:13323const base::Feature kHistoryQuickProviderAllowButDoNotScoreMidwordTerms{
324 "OmniboxHistoryQuickProviderAllowButDoNotScoreMidwordTerms",
manuk8f1b1e1a2020-07-28 22:02:13325 base::FEATURE_ENABLED_BY_DEFAULT};
manukh5ff0f582020-01-14 03:54:13326
manukh3bb80c92020-01-22 00:19:46327// If disabled, midword matches are ignored except in the URL host, and input
328// terms with no wordstart matches are scored 0, resulting in an overall score
329// of 0. If enabled, midword matches are allowed and scored when they begin
330// immediately after the previous match ends. E.g. 'java script' will match a
331// suggestion titled 'javascript' but the input 'java cript' won't.
manukh5ff0f582020-01-14 03:54:13332const base::Feature kHistoryQuickProviderAllowMidwordContinuations{
333 "OmniboxHistoryQuickProviderAllowMidwordContinuations",
manuk8f1b1e1a2020-07-28 22:02:13334 base::FEATURE_ENABLED_BY_DEFAULT};
manukh5ff0f582020-01-14 03:54:13335
Tomasz Wiszkowski70fb35f2020-02-27 00:39:19336// If enabled, shows slightly more compact suggestions, allowing the
337// kAdaptiveSuggestionsCount feature to fit more suggestions on screen.
338const base::Feature kCompactSuggestions{"OmniboxCompactSuggestions",
339 base::FEATURE_DISABLED_BY_DEFAULT};
340
Tomasz Wiszkowski70fb35f2020-02-27 00:39:19341// If enabled, defers keyboard popup when user highlights the omnibox until
342// the user taps the Omnibox again.
343extern const base::Feature kDeferredKeyboardPopup{
344 "OmniboxDeferredKeyboardPopup", base::FEATURE_DISABLED_BY_DEFAULT};
345
manuk695f9d4532020-03-18 19:22:08346// If enabled, expands autocompletion to possibly (depending on params) include
347// suggestion titles and non-prefixes as opposed to be restricted to URL
348// prefixes. Will also adjust the location bar UI and omnibox text selection to
349// accommodate the autocompletions.
350const base::Feature kRichAutocompletion{"OmniboxRichAutocompletion",
351 base::FEATURE_DISABLED_BY_DEFAULT};
352
Filip Gorski05279842020-06-12 12:49:02353// Feature that enables Search Ready Omnibox in invognito.
354const base::Feature kOmniboxSearchReadyIncognito{
355 "OmniboxSearchReadyIncognito", base::FEATURE_DISABLED_BY_DEFAULT};
356
Orin Jaworskifc174722020-01-29 00:32:22357// Feature that puts a single row of buttons on suggestions with actionable
358// elements like keywords, tab-switch buttons, and Pedals.
359const base::Feature kOmniboxSuggestionButtonRow{
360 "OmniboxSuggestionButtonRow", base::FEATURE_DISABLED_BY_DEFAULT};
361
Filip Gorski927709ea2020-04-30 15:58:37362// Enables using an Android RecyclerView to render the suggestions dropdown
363// instead of a ListView.
364const base::Feature kOmniboxSuggestionsRecyclerView{
365 "OmniboxSuggestionsRecyclerView", base::FEATURE_DISABLED_BY_DEFAULT};
366
Tomasz Wiszkowski5ec4f532020-05-19 21:28:10367// Allows long Omnibox suggestions to wrap around to next line.
368const base::Feature kOmniboxSuggestionsWrapAround{
369 "OmniboxSuggestionsWrapAround", base::FEATURE_DISABLED_BY_DEFAULT};
370
Tommy Li1f1fc4a2020-01-31 21:02:07371// If enabled, uses WebUI to render the omnibox suggestions popup, similar to
372// how the NTP "fakebox" is implemented.
373const base::Feature kWebUIOmniboxPopup{"WebUIOmniboxPopup",
374 base::FEATURE_DISABLED_BY_DEFAULT};
375
Brandon Wylie1299ff82020-01-23 02:13:37376// When enabled, use Assistant for omnibox voice query recognition instead of
377// Android's built-in voice recognition service. Only works on Android.
378const base::Feature kOmniboxAssistantVoiceSearch{
379 "OmniboxAssistantVoiceSearch", base::FEATURE_DISABLED_BY_DEFAULT};
380
Livvie Lin30a9f9d2020-03-17 19:45:19381// When enabled, provides an omnibox context menu option that prevents URL
382// elisions.
383const base::Feature kOmniboxContextMenuShowFullUrls{
384 "OmniboxContextMenuShowFullUrls", base::FEATURE_DISABLED_BY_DEFAULT};
385
Emily Stark4bca290ac2020-06-29 21:02:30386// Feature used to reveal the path, query and ref from steady state URLs
387// on hover.
388const base::Feature kRevealSteadyStateUrlPathQueryAndRefOnHover{
389 "OmniboxUIExperimentRevealSteadyStateUrlPathQueryAndRefOnHover",
390 base::FEATURE_DISABLED_BY_DEFAULT};
391
392// Feature used to hide the path, query and ref from steady state URLs
393// on interaction with the page.
394const base::Feature kHideSteadyStateUrlPathQueryAndRefOnInteraction{
395 "OmniboxUIExperimentHideSteadyStateUrlPathQueryAndRefOnInteraction",
396 base::FEATURE_DISABLED_BY_DEFAULT};
397
Joe DeBlasio6d5806e12020-08-06 17:27:18398// Feature used to possibly elide not just the path, query, and ref from steady
399// state URLs, but also subdomains beyond the registrable domain, depending on
400// whether the hostname fails lookalike checks. Has no effect unless
Emily Stark4bca290ac2020-06-29 21:02:30401// kRevealSteadyStateUrlPathQueryAndRefOnHover and/or
402// kHideSteadyStateUrlPathQueryAndRefOnInteraction are enabled.
Joe DeBlasio6d5806e12020-08-06 17:27:18403const base::Feature kMaybeElideToRegistrableDomain{
Emily Stark4bca290ac2020-06-29 21:02:30404 "OmniboxUIExperimentElideToRegistrableDomain",
405 base::FEATURE_DISABLED_BY_DEFAULT};
406
Tomasz Wiszkowskid938a1112019-03-06 18:01:57407} // namespace omnibox