ash_features.cc 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576
  1. // Copyright 2018 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. #include "ash/constants/ash_features.h"
  5. #include "ash/constants/ash_switches.h"
  6. #include "base/command_line.h"
  7. #include "base/feature_list.h"
  8. #include "base/metrics/field_trial_params.h"
  9. #include "base/system/sys_info.h"
  10. #include "build/build_config.h"
  11. #include "chromeos/constants/chromeos_features.h"
  12. namespace ash {
  13. namespace features {
  14. namespace {
  15. // Controls whether Instant Tethering supports hosts which use the background
  16. // advertisement model.
  17. const base::Feature kInstantTetheringBackgroundAdvertisementSupport{
  18. "InstantTetheringBackgroundAdvertisementSupport",
  19. base::FEATURE_ENABLED_BY_DEFAULT};
  20. } // namespace
  21. // Enables the UI and logic that minimizes the amount of time the device spends
  22. // at full battery. This preserves battery lifetime.
  23. const base::Feature kAdaptiveCharging{"AdaptiveCharging",
  24. base::FEATURE_DISABLED_BY_DEFAULT};
  25. // Enable the logic to show the notifications for Adaptive Charging features.
  26. // This is intended to be used by developers to test the UI aspect of the
  27. // feature.
  28. const base::Feature kAdaptiveChargingForTesting{
  29. "AdaptiveChargingForTesting", base::FEATURE_DISABLED_BY_DEFAULT};
  30. // Adjusts portrait mode split view to avoid the input field in the bottom
  31. // window being occluded by the virtual keyboard.
  32. const base::Feature kAdjustSplitViewForVK{"AdjustSplitViewForVK",
  33. base::FEATURE_ENABLED_BY_DEFAULT};
  34. // Enables the UI to support Ambient EQ if the device supports it.
  35. // See https://crbug.com/1021193 for more details.
  36. const base::Feature kAllowAmbientEQ{"AllowAmbientEQ",
  37. base::FEATURE_DISABLED_BY_DEFAULT};
  38. // Allows pairing to Bluetooth devices created by Poly. See b/228118615.
  39. const base::Feature kAllowPolyDevicePairing{"AllowPolyDevicePairing",
  40. base::FEATURE_ENABLED_BY_DEFAULT};
  41. // Controls whether devices are updated before reboot after the first update.
  42. const base::Feature kAllowRepeatedUpdates{"AllowRepeatedUpdates",
  43. base::FEATURE_ENABLED_BY_DEFAULT};
  44. // Always reinstall system web apps, instead of only doing so after version
  45. // upgrade or locale changes.
  46. const base::Feature kAlwaysReinstallSystemWebApps{
  47. "ReinstallSystemWebApps", base::FEATURE_DISABLED_BY_DEFAULT};
  48. // Shows settings for adjusting scroll acceleration/sensitivity for
  49. // mouse/touchpad.
  50. const base::Feature kAllowScrollSettings{"AllowScrollSettings",
  51. base::FEATURE_DISABLED_BY_DEFAULT};
  52. // Controls whether to enable Ambient mode feature.
  53. const base::Feature kAmbientModeFeature{"ChromeOSAmbientMode",
  54. base::FEATURE_ENABLED_BY_DEFAULT};
  55. constexpr base::FeatureParam<bool> kAmbientModeCapturedOnPixelAlbumEnabled{
  56. &kAmbientModeFeature, "CapturedOnPixelAlbumEnabled", false};
  57. constexpr base::FeatureParam<bool> kAmbientModeCapturedOnPixelPhotosEnabled{
  58. &kAmbientModeFeature, "CapturedOnPixelPhotosEnabled", false};
  59. constexpr base::FeatureParam<bool> kAmbientModeCulturalInstitutePhotosEnabled{
  60. &kAmbientModeFeature, "CulturalInstitutePhotosEnabled", false};
  61. constexpr base::FeatureParam<bool> kAmbientModeDefaultFeedEnabled{
  62. &kAmbientModeFeature, "DefaultFeedEnabled", false};
  63. constexpr base::FeatureParam<bool> kAmbientModeEarthAndSpaceAlbumEnabled{
  64. &kAmbientModeFeature, "EarthAndSpaceAlbumEnabled", true};
  65. constexpr base::FeatureParam<bool> kAmbientModeFeaturedPhotoAlbumEnabled{
  66. &kAmbientModeFeature, "FeaturedPhotoAlbumEnabled", true};
  67. constexpr base::FeatureParam<bool> kAmbientModeFeaturedPhotosEnabled{
  68. &kAmbientModeFeature, "FeaturedPhotosEnabled", true};
  69. constexpr base::FeatureParam<bool> kAmbientModeFineArtAlbumEnabled{
  70. &kAmbientModeFeature, "FineArtAlbumEnabled", false};
  71. constexpr base::FeatureParam<bool> kAmbientModeGeoPhotosEnabled{
  72. &kAmbientModeFeature, "GeoPhotosEnabled", true};
  73. constexpr base::FeatureParam<bool> kAmbientModePersonalPhotosEnabled{
  74. &kAmbientModeFeature, "PersonalPhotosEnabled", true};
  75. constexpr base::FeatureParam<bool> kAmbientModeRssPhotosEnabled{
  76. &kAmbientModeFeature, "RssPhotosEnabled", false};
  77. constexpr base::FeatureParam<bool> kAmbientModeStreetArtAlbumEnabled{
  78. &kAmbientModeFeature, "StreetArtAlbumEnabled", false};
  79. // The "slideshow" theme is intentionally omitted here. For that, the developer
  80. // can just disable |kAmbientModeAnimationFeature| entirely.
  81. const base::FeatureParam<AmbientAnimationTheme>::Option
  82. kAmbientModeAnimationThemeOptions[] = {
  83. {AmbientAnimationTheme::kFeelTheBreeze, "feel_the_breeze"},
  84. {AmbientAnimationTheme::kFloatOnBy, "float_on_by"}};
  85. // When |kAmbientModeAnimationFeature| is enabled, specifies which animation
  86. // theme to load. If |kAmbientModeAnimationFeature| is disabled, this is
  87. // unused.
  88. const base::FeatureParam<AmbientAnimationTheme> kAmbientModeAnimationThemeParam{
  89. &kAmbientModeAnimationFeature, "animation_theme",
  90. AmbientAnimationTheme::kFeelTheBreeze, &kAmbientModeAnimationThemeOptions};
  91. // Controls whether to launch the animated screensaver (as opposed to the
  92. // existing photo slideshow) when entering ambient mode.
  93. const base::Feature kAmbientModeAnimationFeature{
  94. "ChromeOSAmbientModeAnimation", base::FEATURE_ENABLED_BY_DEFAULT};
  95. // Controls whether to allow Dev channel to use Prod server feature.
  96. const base::Feature kAmbientModeDevUseProdFeature{
  97. "ChromeOSAmbientModeDevChannelUseProdServer",
  98. base::FEATURE_DISABLED_BY_DEFAULT};
  99. // Controls whether to enable Ambient mode album selection with photo previews.
  100. const base::Feature kAmbientModePhotoPreviewFeature{
  101. "ChromeOSAmbientModePhotoPreview", base::FEATURE_ENABLED_BY_DEFAULT};
  102. // Controls whether to enable ARC ADB sideloading support.
  103. const base::Feature kArcAdbSideloadingFeature{
  104. "ArcAdbSideloading", base::FEATURE_DISABLED_BY_DEFAULT};
  105. // Controls whether files shared from ARC apps to Web Apps should be shared
  106. // through the FuseBox service.
  107. const base::Feature kArcFuseBoxFileSharing{"ArcFuseBoxFileSharing",
  108. base::FEATURE_ENABLED_BY_DEFAULT};
  109. // Controls whether to enable support for ARC Input Overlay Alpha.
  110. const base::Feature kArcInputOverlay{"ArcInputOverlay",
  111. base::FEATURE_ENABLED_BY_DEFAULT};
  112. // Controls whether to enable support for ARC Input Overlay Beta.
  113. const base::Feature kArcInputOverlayBeta{"ArcInputOverlayBeta",
  114. base::FEATURE_DISABLED_BY_DEFAULT};
  115. // Controls whether to enable support for ARC ADB sideloading for managed
  116. // accounts and/or devices.
  117. const base::Feature kArcManagedAdbSideloadingSupport{
  118. "ArcManagedAdbSideloadingSupport", base::FEATURE_DISABLED_BY_DEFAULT};
  119. // Controls whether to enable enhanced assistive emoji suggestions.
  120. const base::Feature kAssistEmojiEnhanced{"AssistEmojiEnhanced",
  121. base::FEATURE_DISABLED_BY_DEFAULT};
  122. // Controls whether to enable assistive multi word suggestions.
  123. const base::Feature kAssistMultiWord{"AssistMultiWord",
  124. base::FEATURE_DISABLED_BY_DEFAULT};
  125. // Controls whether to enable assistive multi word suggestions on an expanded
  126. // list of surfaces.
  127. const base::Feature kAssistMultiWordExpanded{"AssistMultiWordExpanded",
  128. base::FEATURE_DISABLED_BY_DEFAULT};
  129. // Controls whether to enable assistive personal information.
  130. const base::Feature kAssistPersonalInfo{"AssistPersonalInfo",
  131. base::FEATURE_DISABLED_BY_DEFAULT};
  132. // Controls whether to suggest addresses in assistive personal information. This
  133. // is only effective when AssistPersonalInfo flag is enabled.
  134. const base::Feature kAssistPersonalInfoAddress{
  135. "AssistPersonalInfoAddress", base::FEATURE_ENABLED_BY_DEFAULT};
  136. // Controls whether to suggest emails in assistive personal information. This is
  137. // only effective when AssistPersonalInfo flag is enabled.
  138. const base::Feature kAssistPersonalInfoEmail{"AssistPersonalInfoEmail",
  139. base::FEATURE_ENABLED_BY_DEFAULT};
  140. // Controls whether to suggest names in assistive personal information. This is
  141. // only effective when AssistPersonalInfo flag is enabled.
  142. const base::Feature kAssistPersonalInfoName{"AssistPersonalInfoName",
  143. base::FEATURE_ENABLED_BY_DEFAULT};
  144. // Controls whether to suggest phone numbers in assistive personal information.
  145. // This is only effective when AssistPersonalInfo flag is enabled.
  146. const base::Feature kAssistPersonalInfoPhoneNumber{
  147. "AssistPersonalInfoPhoneNumber", base::FEATURE_ENABLED_BY_DEFAULT};
  148. const base::Feature kAssistantNativeIcons{"AssistantNativeIcons",
  149. base::FEATURE_ENABLED_BY_DEFAULT};
  150. // Enables the Audio Settings Page in System Settings, which allows
  151. // audio configuration. crbug.com/1092970.
  152. const base::Feature kAudioSettingsPage{"AudioSettingsPage",
  153. base::FEATURE_DISABLED_BY_DEFAULT};
  154. // Enables the Audio URL that is designed to help user debug or troubleshoot
  155. // common issues on ChromeOS.
  156. const base::Feature kAudioUrl{"AudioUrl", base::FEATURE_DISABLED_BY_DEFAULT};
  157. // Enables the Auto Night Light feature which sets the default schedule type to
  158. // sunset-to-sunrise until the user changes it to something else. This feature
  159. // is not exposed to the end user, and is enabled only via cros_config for
  160. // certain devices.
  161. const base::Feature kAutoNightLight{"AutoNightLight",
  162. base::FEATURE_DISABLED_BY_DEFAULT};
  163. // Enables or disables auto screen-brightness adjustment when ambient light
  164. // changes.
  165. const base::Feature kAutoScreenBrightness{"AutoScreenBrightness",
  166. base::FEATURE_ENABLED_BY_DEFAULT};
  167. // Enables or disables extended autocomplete results.
  168. const base::Feature kAutocompleteExtendedSuggestions{
  169. "AutocompleteExtendedSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
  170. // Enables params tuning experiment for autocorrect on ChromeOS.
  171. const base::Feature kAutocorrectParamsTuning{"AutocorrectParamsTuning",
  172. base::FEATURE_DISABLED_BY_DEFAULT};
  173. // If enabled, the autozoom nudge shown prefs will be reset at the start of
  174. // each new user session.
  175. const base::Feature kAutozoomNudgeSessionReset{
  176. "AutozoomNudgeSessionReset", base::FEATURE_DISABLED_BY_DEFAULT};
  177. // Enables loading avatar images from the cloud on ChromeOS.
  178. const base::Feature kAvatarsCloudMigration{"AvatarsCloudMigration",
  179. base::FEATURE_DISABLED_BY_DEFAULT};
  180. // Enables the persistent desks bar at the top of the screen in clamshell mode
  181. // when there are more than one desk.
  182. const base::Feature kBentoBar{"BentoBar", base::FEATURE_DISABLED_BY_DEFAULT};
  183. // Enables or disables the usage of fixed Bluetooth A2DP packet size to improve
  184. // audio performance in noisy environment.
  185. const base::Feature kBluetoothFixA2dpPacketSize{
  186. "BluetoothFixA2dpPacketSize", base::FEATURE_DISABLED_BY_DEFAULT};
  187. // Enables or disables the Bluetooth Quality Report feature.
  188. const base::Feature kBluetoothQualityReport{"BluetoothQualityReport",
  189. base::FEATURE_DISABLED_BY_DEFAULT};
  190. // Enables or disables the ChromeOS Bluetooth Revamp, which updates Bluetooth
  191. // system UI and related infrastructure. See https://crbug.com/1010321.
  192. const base::Feature kBluetoothRevamp{"BluetoothRevamp",
  193. base::FEATURE_ENABLED_BY_DEFAULT};
  194. // Enables or disables Bluetooth WBS microphone be selected as default
  195. // audio input option.
  196. const base::Feature kBluetoothWbsDogfood{"BluetoothWbsDogfood",
  197. base::FEATURE_DISABLED_BY_DEFAULT};
  198. // Enable Big GL when using Borealis.
  199. const base::Feature kBorealisBigGl{"BorealisBigGl",
  200. base::FEATURE_ENABLED_BY_DEFAULT};
  201. // Enable experimental disk management changes for Borealis.
  202. const base::Feature kBorealisDiskManagement{"BorealisDiskManagement",
  203. base::FEATURE_ENABLED_BY_DEFAULT};
  204. // Enable borealis on this device. This won't necessarily allow it, since you
  205. // might fail subsequent checks.
  206. const base::Feature kBorealisPermitted{"BorealisPermitted",
  207. base::FEATURE_DISABLED_BY_DEFAULT};
  208. // Force the client to be on its beta version. If not set, the client will be on
  209. // its stable version.
  210. const base::Feature kBorealisForceBetaClient{"BorealisForceBetaClient",
  211. base::FEATURE_DISABLED_BY_DEFAULT};
  212. // Prevent Borealis' client from exercising ChromeOS integrations, in this mode
  213. // it functions more like the linux client.
  214. const base::Feature kBorealisLinuxMode{"BorealisLinuxMode",
  215. base::FEATURE_DISABLED_BY_DEFAULT};
  216. // Enable storage ballooning for Borealis. This takes precedence over
  217. // kBorealisDiskManagement.
  218. const base::Feature kBorealisStorageBallooning{
  219. "BorealisStorageBallooning", base::FEATURE_DISABLED_BY_DEFAULT};
  220. // Enable TermsOfServiceURL policy for managed users.
  221. // https://crbug.com/1221342
  222. const base::Feature kManagedTermsOfService{"ManagedTermsOfService",
  223. base::FEATURE_ENABLED_BY_DEFAULT};
  224. // Enable or disable calendar view from the system tray. Also enables the system
  225. // tray to show date in the shelf when the screen is sufficiently large.
  226. const base::Feature kCalendarView{"CalendarView",
  227. base::FEATURE_ENABLED_BY_DEFAULT};
  228. // Enable or disable debug mode for CalendarModel.
  229. const base::Feature kCalendarModelDebugMode{"CalendarModelDebugMode",
  230. base::FEATURE_DISABLED_BY_DEFAULT};
  231. // Enables to allow using document scanning feature via DLC in the camera app.
  232. const base::Feature kCameraAppDocScanDlc{"CameraAppDocScanDlc",
  233. base::FEATURE_DISABLED_BY_DEFAULT};
  234. // Controls whether the camera privacy switch toasts and notification should be
  235. // displayed.
  236. const base::Feature kCameraPrivacySwitchNotifications{
  237. "CameraPrivacySwitchNotifications", base::FEATURE_ENABLED_BY_DEFAULT};
  238. // If enabled, allow eSIM installation bypass the non-cellular internet
  239. // connectivity check.
  240. const base::Feature kCellularBypassESimInstallationConnectivityCheck{
  241. "CellularBypassESimInstallationConnectivityCheck",
  242. base::FEATURE_DISABLED_BY_DEFAULT};
  243. const base::Feature kCellularCustomAPNProfiles{
  244. "CellularCustomAPNProfiles", base::FEATURE_DISABLED_BY_DEFAULT};
  245. // If enabled, the value of |kCellularUseAttachApn| should have no effect and
  246. // and the LTE attach APN configuration will not be sent to the modem. This
  247. // flag exists because the |kCellularUseAttachApn| flag can be enabled
  248. // by command-line arguments via board overlays which takes precedence over
  249. // server-side field trial config, which may be needed to turn off the Attach
  250. // APN feature.
  251. const base::Feature kCellularForbidAttachApn{"CellularForbidAttachApn",
  252. base::FEATURE_DISABLED_BY_DEFAULT};
  253. // If enabled, send the LTE attach APN configuration to the modem.
  254. const base::Feature kCellularUseAttachApn{"CellularUseAttachApn",
  255. base::FEATURE_ENABLED_BY_DEFAULT};
  256. // If enabled, use second the Euicc that is exposed by Hermes in Cellular Setup
  257. // and Settings.
  258. const base::Feature kCellularUseSecondEuicc{"CellularUseSecondEuicc",
  259. base::FEATURE_DISABLED_BY_DEFAULT};
  260. // If enabled, Multiple scraped passwords should be checked against password in
  261. // cryptohome.
  262. const base::Feature kCheckPasswordsAgainstCryptohomeHelper{
  263. "CheckPasswordsAgainstCryptohomeHelper", base::FEATURE_DISABLED_BY_DEFAULT};
  264. // If enabled, a blue new nudge will show on the context menu option for
  265. // clipboard history.
  266. const base::Feature kClipboardHistoryContextMenuNudge{
  267. "ClipboardHistoryContextMenuNudge", base::FEATURE_DISABLED_BY_DEFAULT};
  268. // If enabled, the clipboard nudge shown prefs will be reset at the start of
  269. // each new user session.
  270. const base::Feature kClipboardHistoryNudgeSessionReset{
  271. "ClipboardHistoryNudgeSessionReset", base::FEATURE_DISABLED_BY_DEFAULT};
  272. // If enabled, pasting a clipboard history item will cause that item to move to
  273. // the top of the history list.
  274. const base::Feature kClipboardHistoryReorder{"ClipboardHistoryReorder",
  275. base::FEATURE_DISABLED_BY_DEFAULT};
  276. // If enabled and account falls under the new deal, will be allowed to toggle
  277. // auto updates.
  278. const base::Feature kConsumerAutoUpdateToggleAllowed{
  279. "ConsumerAutoUpdateToggleAllowed", base::FEATURE_ENABLED_BY_DEFAULT};
  280. // Enable or disable the changes of WMP features for CrosNext project.
  281. const base::Feature kCrosNextWMP{"CrosNextWMP",
  282. base::FEATURE_DISABLED_BY_DEFAULT};
  283. // Enables Privacy Hub for ChromeOS.
  284. const base::Feature kCrosPrivacyHub{"CrosPrivacyHub",
  285. base::FEATURE_DISABLED_BY_DEFAULT};
  286. // Enables future features for Privacy Hub for ChromeOS.
  287. const base::Feature kCrosPrivacyHubFuture{"CrosPrivacyHubFuture",
  288. base::FEATURE_DISABLED_BY_DEFAULT};
  289. // If enabled, replaces the `DeskMiniView` legacy desk close button and behavior
  290. // with a button to close desk and windows and a button to combine desks (the
  291. // legacy behavior).
  292. const base::Feature kDesksCloseAll{"DesksCloseAll",
  293. base::FEATURE_DISABLED_BY_DEFAULT};
  294. // Enables contextual nudges for gesture education.
  295. const base::Feature kContextualNudges{"ContextualNudges",
  296. base::FEATURE_ENABLED_BY_DEFAULT};
  297. const base::Feature kCrosLanguageSettingsUpdateJapanese{
  298. "CrosLanguageSettingsUpdateJapanese", base::FEATURE_DISABLED_BY_DEFAULT};
  299. // Enables or disables Crosh System Web App. When enabled, crosh (ChromeOS
  300. // Shell) will run as a tabbed System Web App rather than a normal browser tab.
  301. const base::Feature kCroshSWA{"CroshSWA", base::FEATURE_ENABLED_BY_DEFAULT};
  302. // Enables upgrading the crostini container to debian bullseye.
  303. const base::Feature kCrostiniBullseyeUpgrade{"CrostiniBullseyeUpgrade",
  304. base::FEATURE_ENABLED_BY_DEFAULT};
  305. // Enables or disables Crostini Disk Resizing.
  306. const base::Feature kCrostiniDiskResizing{"CrostiniDiskResizing",
  307. base::FEATURE_ENABLED_BY_DEFAULT};
  308. // Enables or disables Crostini GPU support.
  309. // Note that this feature can be overridden by login_manager based on
  310. // whether a per-board build sets the USE virtio_gpu flag.
  311. // Refer to: chromiumos/src/platform2/login_manager/chrome_setup.cc
  312. const base::Feature kCrostiniGpuSupport{"CrostiniGpuSupport",
  313. base::FEATURE_DISABLED_BY_DEFAULT};
  314. // Force enable recreating the LXD DB at LXD launch.
  315. const base::Feature kCrostiniResetLxdDb{"CrostiniResetLxdDb",
  316. base::FEATURE_DISABLED_BY_DEFAULT};
  317. // Do we use the default LXD version or try LXD 4?
  318. const base::Feature kCrostiniUseLxd4{"CrostiniUseLxd4",
  319. base::FEATURE_DISABLED_BY_DEFAULT};
  320. // Enables experimental UI creating and managing multiple Crostini containers.
  321. const base::Feature kCrostiniMultiContainer{"CrostiniMultiContainer",
  322. base::FEATURE_DISABLED_BY_DEFAULT};
  323. // Enables or disables Crostini IME support.
  324. const base::Feature kCrostiniImeSupport{"CrostiniImeSupport",
  325. base::FEATURE_DISABLED_BY_DEFAULT};
  326. // Enables or disables Crostini Virtual Keyboard support.
  327. const base::Feature kCrostiniVirtualKeyboardSupport{
  328. "CrostiniVirtualKeyboardSupport", base::FEATURE_DISABLED_BY_DEFAULT};
  329. // Enables or disables generic guest OS installer infrastructure.
  330. const base::Feature kGuestOSGenericInstaller{"GuestOSGenericInstaller",
  331. base::FEATURE_DISABLED_BY_DEFAULT};
  332. // Enables or disables support for third party VMs.
  333. const base::Feature kBruschetta{"Bruschetta",
  334. base::FEATURE_DISABLED_BY_DEFAULT};
  335. // Enables or disables always using device-activity-status data to filter
  336. // eligible host phones.
  337. const base::Feature kCryptAuthV2AlwaysUseActiveEligibleHosts{
  338. "kCryptAuthV2AlwaysUseActiveEligibleHosts",
  339. base::FEATURE_ENABLED_BY_DEFAULT};
  340. // Enables or disables using Cryptauth's GetDevicesActivityStatus API.
  341. const base::Feature kCryptAuthV2DeviceActivityStatus{
  342. "CryptAuthV2DeviceActivityStatus", base::FEATURE_ENABLED_BY_DEFAULT};
  343. // Enables or disables use of the connectivity status from Cryptauth's
  344. // GetDevicesActivityStatus API to sort devices.
  345. const base::Feature kCryptAuthV2DeviceActivityStatusUseConnectivity{
  346. "CryptAuthV2DeviceActivityStatusUseConnectivity",
  347. base::FEATURE_DISABLED_BY_DEFAULT};
  348. // Enables or disables use of last activity time to deduplicate eligible host
  349. // phones in multidevice setup dropdown list. We assume that different copies
  350. // of same device share the same last activity time but different last update
  351. // time.
  352. const base::Feature kCryptAuthV2DedupDeviceLastActivityTime{
  353. "CryptAuthV2DedupDeviceLastActivityTime", base::FEATURE_ENABLED_BY_DEFAULT};
  354. // Enables or disables the CryptAuth v2 DeviceSync flow. Regardless of this
  355. // flag, v1 DeviceSync will continue to operate until it is disabled via the
  356. // feature flag kDisableCryptAuthV1DeviceSync.
  357. const base::Feature kCryptAuthV2DeviceSync{"CryptAuthV2DeviceSync",
  358. base::FEATURE_ENABLED_BY_DEFAULT};
  359. // Enables or disables the CryptAuth v2 Enrollment flow.
  360. const base::Feature kCryptAuthV2Enrollment{"CryptAuthV2Enrollment",
  361. base::FEATURE_ENABLED_BY_DEFAULT};
  362. // Enables the Cryptohome recovery feature, which allows users to recover access
  363. // to their profile and Cryptohome after performing an online authentication.
  364. const base::Feature kCryptohomeRecoveryFlow{"CryptohomeRecoveryFlow",
  365. base::FEATURE_DISABLED_BY_DEFAULT};
  366. // Enables the UI for the cryptohome recovery feature:
  367. // - New UI for Gaia password changed screen.
  368. // - Adds a "forgot password" button to the error bubble that opens when the
  369. // user fails to enter their correct password.
  370. const base::Feature kCryptohomeRecoveryFlowUI{
  371. "CryptohomeRecoveryFlowUI", base::FEATURE_DISABLED_BY_DEFAULT};
  372. // Enables the UI to enable or disable cryptohome recovery in the settings
  373. // page. Also guards the wiring of cryptohome recovery settings to the
  374. // cryptohome backend.
  375. const base::Feature kCryptohomeRecoverySetup{"CryptohomeRecoverySetup",
  376. base::FEATURE_DISABLED_BY_DEFAULT};
  377. const base::Feature kDemoModeSWA{"DemoModeSWA",
  378. base::FEATURE_DISABLED_BY_DEFAULT};
  379. // Enables or disables Assistant stylus features, including the
  380. // Assistant option in the stylus palette tool and the Assistant screen
  381. // selection flow triggered by the stylus long press action.
  382. const base::Feature kDeprecateAssistantStylusFeatures{
  383. "DeprecateAssistantStylusFeatures", base::FEATURE_DISABLED_BY_DEFAULT};
  384. // Enables or disables Sync for desk templates on ChromeOS.
  385. const base::Feature kDeskTemplateSync{"DeskTemplateSync",
  386. base::FEATURE_ENABLED_BY_DEFAULT};
  387. const base::Feature kDesksTemplates{"DesksTemplates",
  388. base::FEATURE_DISABLED_BY_DEFAULT};
  389. // Enables diacritics on longpress on the physical keyboard.
  390. const base::Feature kDiacriticsOnPhysicalKeyboardLongpress{
  391. "DiacriticsOnPhysicalKeyboardLongpress", base::FEATURE_DISABLED_BY_DEFAULT};
  392. // Disables the CryptAuth v1 DeviceSync flow. Note: During the first phase
  393. // of the v2 DeviceSync rollout, v1 and v2 DeviceSync run in parallel. This flag
  394. // is needed to disable the v1 service during the second phase of the rollout.
  395. // kCryptAuthV2DeviceSync should be enabled before this flag is flipped.
  396. const base::Feature kDisableCryptAuthV1DeviceSync{
  397. "DisableCryptAuthV1DeviceSync", base::FEATURE_ENABLED_BY_DEFAULT};
  398. // Feature flag for disable/enable Lacros TTS support.
  399. // The flag is enabled by default so that the feature is disabled before it is
  400. // completedly implemented.
  401. const base::Feature kDisableLacrosTtsSupport{"DisableLacrosTtsSupport",
  402. base::FEATURE_ENABLED_BY_DEFAULT};
  403. // Enables indicators to hint where displays are connected.
  404. const base::Feature kDisplayAlignAssist{"DisplayAlignAssist",
  405. base::FEATURE_DISABLED_BY_DEFAULT};
  406. // Enables the docked (a.k.a. picture-in-picture) magnifier.
  407. // TODO(afakhry): Remove this after the feature is fully launched.
  408. // https://crbug.com/709824.
  409. const base::Feature kDockedMagnifier{"DockedMagnifier",
  410. base::FEATURE_ENABLED_BY_DEFAULT};
  411. // Enables dragging an unpinned open app to pinned app side to pin.
  412. const base::Feature kDragUnpinnedAppToPin{"DragUnpinnedAppToPin",
  413. base::FEATURE_DISABLED_BY_DEFAULT};
  414. // Enables dragging and dropping an existing window to new desk in overview.
  415. const base::Feature kDragWindowToNewDesk{"DragWindowToNewDesk",
  416. base::FEATURE_ENABLED_BY_DEFAULT};
  417. // If enabled, DriveFS will be used for Drive sync.
  418. const base::Feature kDriveFs{"DriveFS", base::FEATURE_ENABLED_BY_DEFAULT};
  419. // Enables duplex native messaging between DriveFS and extensions.
  420. const base::Feature kDriveFsBidirectionalNativeMessaging{
  421. "DriveFsBidirectionalNativeMessaging", base::FEATURE_DISABLED_BY_DEFAULT};
  422. // Enables DriveFS' experimental local files mirroring functionality.
  423. const base::Feature kDriveFsMirroring{"DriveFsMirroring",
  424. base::FEATURE_DISABLED_BY_DEFAULT};
  425. // Enables access to Chrome's Network Service for DriveFS.
  426. const base::Feature kDriveFsChromeNetworking{"DriveFsChromeNetworking",
  427. base::FEATURE_DISABLED_BY_DEFAULT};
  428. // Enables authenticating to Wi-Fi networks using EAP-GTC.
  429. const base::Feature kEapGtcWifiAuthentication{
  430. "EapGtcWifiAuthentication", base::FEATURE_DISABLED_BY_DEFAULT};
  431. // Enables the System Web App (SWA) version of Eche.
  432. const base::Feature kEcheSWA{"EcheSWA", base::FEATURE_DISABLED_BY_DEFAULT};
  433. // Enables the Debug Mode of Eche.
  434. const base::Feature kEcheSWADebugMode{"EcheSWADebugMode",
  435. base::FEATURE_DISABLED_BY_DEFAULT};
  436. // Enables background blur for the app list, shelf, unified system tray,
  437. // autoclick menu, etc. Also enables the AppsGridView mask layer, slower devices
  438. // may have choppier app list animations while in this mode. crbug.com/765292.
  439. const base::Feature kEnableBackgroundBlur{"EnableBackgroundBlur",
  440. base::FEATURE_ENABLED_BY_DEFAULT};
  441. // Enables some trials aimed at improving user experiencing when using the
  442. // trackpad to switch desks.
  443. // TODO(https://crbug.com/1191545): Remove this after the feature is launched.
  444. const base::Feature kEnableDesksTrackpadSwipeImprovements{
  445. "EnableDesksTrackpadSwipeImprovements", base::FEATURE_ENABLED_BY_DEFAULT};
  446. // Enables the DNS proxy service providing support split and secure DNS
  447. // for ChromeOS.
  448. const base::Feature kEnableDnsProxy{"EnableDnsProxy",
  449. base::FEATURE_ENABLED_BY_DEFAULT};
  450. // Enables external keyboard testers in the diagnostics app.
  451. const base::Feature kEnableExternalKeyboardsInDiagnostics{
  452. "EnableExternalKeyboardsInDiagnosticsApp",
  453. base::FEATURE_DISABLED_BY_DEFAULT};
  454. // Enables setting the device hostname.
  455. const base::Feature kEnableHostnameSetting{"EnableHostnameSetting",
  456. base::FEATURE_DISABLED_BY_DEFAULT};
  457. // Enables selecting IKEv2 as the VPN provider type when creating a VPN network.
  458. // This will only take effect when running a compatible kernel, see
  459. // crbug/1275421.
  460. const base::Feature kEnableIkev2Vpn{"EnableIkev2Vpn",
  461. base::FEATURE_ENABLED_BY_DEFAULT};
  462. // If enabled, the input device cards will be shown in the diagnostics app.
  463. const base::Feature kEnableInputInDiagnosticsApp{
  464. "EnableInputInDiagnosticsApp", base::FEATURE_DISABLED_BY_DEFAULT};
  465. // Enables or disables keyboard backlight toggle.
  466. const base::Feature kEnableKeyboardBacklightToggle{
  467. "EnableKeyboardBacklightToggle", base::FEATURE_ENABLED_BY_DEFAULT};
  468. // Login WebUI was always loaded for legacy reasons even when it was not needed.
  469. // When enabled, it will make login WebUI loaded only before showing it.
  470. const base::Feature kEnableLazyLoginWebUILoading{
  471. "EnableLazyLoginWebUILoading", base::FEATURE_DISABLED_BY_DEFAULT};
  472. // Enables LocalSearchService to be initialized.
  473. const base::Feature kEnableLocalSearchService{"EnableLocalSearchService",
  474. base::FEATURE_ENABLED_BY_DEFAULT};
  475. // Enables using DiagnosticsLogController to manage lifetime of logs for the
  476. // diagnostics app routines, network events, and system snapshot.
  477. // TODO(ashleydp): Remove this after the feature is launched.
  478. const base::Feature kEnableLogControllerForDiagnosticsApp{
  479. "EnableLogControllerForDiagnosticsApp", base::FEATURE_ENABLED_BY_DEFAULT};
  480. // If enabled, the networking cards will be shown in the diagnostics app.
  481. const base::Feature kEnableNetworkingInDiagnosticsApp{
  482. "EnableNetworkingInDiagnosticsApp", base::FEATURE_ENABLED_BY_DEFAULT};
  483. // Enables OAuth support when printing via the IPP protocol.
  484. const base::Feature kEnableOAuthIpp{"EnableOAuthIpp",
  485. base::FEATURE_DISABLED_BY_DEFAULT};
  486. // Enables the OOBE ChromeVox hint dialog and announcement feature.
  487. const base::Feature kEnableOobeChromeVoxHint{"EnableOobeChromeVoxHint",
  488. base::FEATURE_ENABLED_BY_DEFAULT};
  489. // Enables Kiosk enrollment option in OOBE.
  490. const base::Feature kEnableKioskEnrollmentInOobe{
  491. "EnableKioskEnrollmentInOobe", base::FEATURE_ENABLED_BY_DEFAULT};
  492. // Enables Kiosk UI in Login screen.
  493. const base::Feature kEnableKioskLoginScreen{"EnableKioskLoginScreen",
  494. base::FEATURE_ENABLED_BY_DEFAULT};
  495. // Enables skipping of network screen.
  496. const base::Feature kEnableOobeNetworkScreenSkip{
  497. "EnableOobeNetworkScreenSkip", base::FEATURE_ENABLED_BY_DEFAULT};
  498. // Enables skipping of network screen.
  499. const base::Feature kEnableOobeThemeSelection{"EnableOobeThemeSelection",
  500. base::FEATURE_ENABLED_BY_DEFAULT};
  501. // Enables showing notification after the password change for SAML users.
  502. const base::Feature kEnableSamlNotificationOnPasswordChangeSuccess{
  503. "EnableSamlNotificationOnPasswordChangeSuccess",
  504. base::FEATURE_ENABLED_BY_DEFAULT};
  505. // Enables SAML re-authentication on the lock screen once the sign-in time
  506. // limit expires.
  507. const base::Feature kEnableSamlReauthenticationOnLockscreen{
  508. "EnableSamlReauthenticationOnLockScreen", base::FEATURE_ENABLED_BY_DEFAULT};
  509. const base::Feature kEnableSavedDesks{"EnableSavedDesks",
  510. base::FEATURE_DISABLED_BY_DEFAULT};
  511. // Enables all registered system web apps, regardless of their respective
  512. // feature flags.
  513. const base::Feature kEnableAllSystemWebApps{"EnableAllSystemWebApps",
  514. base::FEATURE_DISABLED_BY_DEFAULT};
  515. // If enabled, touchpad cards will be shown in the diagnostics app's input
  516. // section.
  517. const base::Feature kEnableTouchpadsInDiagnosticsApp{
  518. "EnableTouchpadsInDiagnosticsApp", base::FEATURE_DISABLED_BY_DEFAULT};
  519. // If enabled, touchscreen cards will be shown in the diagnostics app's input
  520. // section.
  521. const base::Feature kEnableTouchscreensInDiagnosticsApp{
  522. "EnableTouchscreensInDiagnosticsApp", base::FEATURE_DISABLED_BY_DEFAULT};
  523. // Enforces Ash extension keep-list. Only the extensions/Chrome apps in the
  524. // keep-list are enabled in Ash.
  525. const base::Feature kEnforceAshExtensionKeeplist{
  526. "EnforceAshExtensionKeeplist", base::FEATURE_ENABLED_BY_DEFAULT};
  527. // Enables Device End Of Lifetime warning notifications.
  528. const base::Feature kEolWarningNotifications{"EolWarningNotifications",
  529. base::FEATURE_ENABLED_BY_DEFAULT};
  530. // Enable or disable support for touchpad with haptic feedback.
  531. const base::Feature kExoHapticFeedbackSupport("ExoHapticFeedbackSupport",
  532. base::FEATURE_ENABLED_BY_DEFAULT);
  533. // Enable or disable bubble showing when an application gains any UI lock.
  534. const base::Feature kExoLockNotification{"ExoLockNotification",
  535. base::FEATURE_ENABLED_BY_DEFAULT};
  536. // Enable or disable use of ordinal (unaccelerated) motion by Exo clients.
  537. const base::Feature kExoOrdinalMotion{"ExoOrdinalMotion",
  538. base::FEATURE_DISABLED_BY_DEFAULT};
  539. // Allows RGB Keyboard to test new animations/patterns.
  540. const base::Feature kExperimentalRgbKeyboardPatterns{
  541. "ExperimentalRgbKeyboardPatterns", base::FEATURE_DISABLED_BY_DEFAULT};
  542. // Enables policy that controls feature to allow Family Link accounts on school
  543. // owned devices.
  544. const base::Feature kFamilyLinkOnSchoolDevice{"FamilyLinkOnSchoolDevice",
  545. base::FEATURE_ENABLED_BY_DEFAULT};
  546. // Enables the Fast Pair feature.
  547. const base::Feature kFastPair{"FastPair", base::FEATURE_DISABLED_BY_DEFAULT};
  548. // Sets Fast Pair scanning to low power mode.
  549. const base::Feature kFastPairLowPower{"FastPairLowPower",
  550. base::FEATURE_DISABLED_BY_DEFAULT};
  551. // The amount of seconds we should scan while in low power mode before stopping.
  552. const base::FeatureParam<double> kFastPairLowPowerActiveSeconds{
  553. &kFastPairLowPower, "active-seconds", 2};
  554. // The amount of seconds we should pause scanning while in low power mode.
  555. const base::FeatureParam<double> kFastPairLowPowerInactiveSeconds{
  556. &kFastPairLowPower, "inactive-seconds", 3};
  557. // Allows Fast Pair to use software scanning on devices which don't support
  558. // hardware offloading of BLE scans.
  559. const base::Feature kFastPairSoftwareScanning{
  560. "FastPairSoftwareScanning", base::FEATURE_DISABLED_BY_DEFAULT};
  561. // Enables the "Subsequent Pairing" Fast Pair scenario in Bluetooth Settings
  562. // and Quick Settings.
  563. const base::Feature kFastPairSubsequentPairingUX{
  564. "FastPairSubsequentPairingUX", base::FEATURE_DISABLED_BY_DEFAULT};
  565. // Enables the "Saved Devices" Fast Pair page in scenario in Bluetooth Settings.
  566. const base::Feature kFastPairSavedDevices{"FastPairSavedDevices",
  567. base::FEATURE_DISABLED_BY_DEFAULT};
  568. // Enables the "Saved Devices" Fast Pair strict interpretation of opt-in status,
  569. // meaning that a user's preferences determine if retroactive pairing and
  570. // subsequent pairing scenarios are enabled.
  571. const base::Feature kFastPairSavedDevicesStrictOptIn{
  572. "FastPairSavedDevicesStrictOptIn", base::FEATURE_DISABLED_BY_DEFAULT};
  573. // Enables experimental UI features in Files app.
  574. const base::Feature kFilesAppExperimental{"FilesAppExperimental",
  575. base::FEATURE_DISABLED_BY_DEFAULT};
  576. // Enable the simple archive extraction.
  577. // https://crbug.com/953256
  578. const base::Feature kFilesExtractArchive{"FilesExtractArchive",
  579. base::FEATURE_ENABLED_BY_DEFAULT};
  580. // Enables the System Web App (SWA) version of file manager.
  581. const base::Feature kFilesSWA{"FilesSWA", base::FEATURE_ENABLED_BY_DEFAULT};
  582. // Enables partitioning of removable disks in file manager.
  583. const base::Feature kFilesSinglePartitionFormat{
  584. "FilesSinglePartitionFormat", base::FEATURE_DISABLED_BY_DEFAULT};
  585. // Enable files app trash.
  586. const base::Feature kFilesTrash{"FilesTrash",
  587. base::FEATURE_DISABLED_BY_DEFAULT};
  588. // Enables opening Office files located in Files app Drive in Web Drive.
  589. const base::Feature kFilesWebDriveOffice{"FilesWebDriveOffice",
  590. base::FEATURE_DISABLED_BY_DEFAULT};
  591. // Enables filters in Files app Recents view.
  592. const base::Feature kFiltersInRecents{"FiltersInRecents",
  593. base::FEATURE_ENABLED_BY_DEFAULT};
  594. // Enables filters in Files app Recents view V2.
  595. const base::Feature kFiltersInRecentsV2{"FiltersInRecentsV2",
  596. base::FEATURE_DISABLED_BY_DEFAULT};
  597. // Enables the firmware updater app.
  598. const base::Feature kFirmwareUpdaterApp = {"FirmwareUpdaterApp",
  599. base::FEATURE_ENABLED_BY_DEFAULT};
  600. // Enables or disables Floating Workspace feature on ChromeOS
  601. const base::Feature kFloatingWorkspace{"FloatingWorkspace",
  602. base::FEATURE_DISABLED_BY_DEFAULT};
  603. // Controls whether to allow keeping full screen mode after unlock.
  604. const base::Feature kFullscreenAfterUnlockAllowed = {
  605. "FullscreenAfterUnlockAllowed", base::FEATURE_ENABLED_BY_DEFAULT};
  606. // When enabled, there will be an alert bubble showing up when the device
  607. // returns from low brightness (e.g., sleep, closed cover) without a lock screen
  608. // and the active window is in fullscreen.
  609. // TODO(https://crbug.com/1107185): Remove this after the feature is launched.
  610. const base::Feature kFullscreenAlertBubble{"EnableFullscreenBubble",
  611. base::FEATURE_DISABLED_BY_DEFAULT};
  612. // Enable ChromeOS FuseBox service.
  613. const base::Feature kFuseBox{"FuseBox", base::FEATURE_ENABLED_BY_DEFAULT};
  614. // Debugging UI for ChromeOS FuseBox service.
  615. const base::Feature kFuseBoxDebug{"FuseBoxDebug",
  616. base::FEATURE_DISABLED_BY_DEFAULT};
  617. // Enable glanceables on login.
  618. const base::Feature kGlanceables{"Glanceables",
  619. base::FEATURE_DISABLED_BY_DEFAULT};
  620. // Enable GuestOS integration with the files app.
  621. const base::Feature kGuestOsFiles{"GuestOsFiles",
  622. base::FEATURE_DISABLED_BY_DEFAULT};
  623. // Enables the Gaia reauth endpoint with deleted user customization page.
  624. const base::Feature kGaiaReauthEndpoint{"GaiaReauthEndpoint",
  625. base::FEATURE_ENABLED_BY_DEFAULT};
  626. // Controls gamepad vibration in Exo.
  627. const base::Feature kGamepadVibration{"ExoGamepadVibration",
  628. base::FEATURE_DISABLED_BY_DEFAULT};
  629. // Enable a D-Bus service for accessing gesture properties.
  630. const base::Feature kGesturePropertiesDBusService{
  631. "GesturePropertiesDBusService", base::FEATURE_DISABLED_BY_DEFAULT};
  632. // Enables editing with handwriting gestures within the virtual keyboard.
  633. const base::Feature kHandwritingGestureEditing{
  634. "HandwritingGestureEditing", base::FEATURE_DISABLED_BY_DEFAULT};
  635. // Enables new on-device recognition for legacy handwriting input.
  636. const base::Feature kHandwritingLegacyRecognition{
  637. "HandwritingLegacyRecognition", base::FEATURE_DISABLED_BY_DEFAULT};
  638. // Enables new on-device recognition for legacy handwriting input in all
  639. // supported languages.
  640. const base::Feature kHandwritingLegacyRecognitionAllLang{
  641. "HandwritingLegacyRecognitionAllLang", base::FEATURE_DISABLED_BY_DEFAULT};
  642. // Enables downloading the handwriting libraries via DLC.
  643. const base::Feature kHandwritingLibraryDlc{"HandwritingLibraryDlc",
  644. base::FEATURE_DISABLED_BY_DEFAULT};
  645. // Enables the Background Page in the help app.
  646. const base::Feature kHelpAppBackgroundPage{"HelpAppBackgroundPage",
  647. base::FEATURE_ENABLED_BY_DEFAULT};
  648. // Enables the Discover Tab in the help app.
  649. const base::Feature kHelpAppDiscoverTab{"HelpAppDiscoverTab",
  650. base::FEATURE_ENABLED_BY_DEFAULT};
  651. // Enables or disables the Help App Discover tab notifications on non-stable
  652. // ChromeOS channels. Used for testing.
  653. const base::Feature kHelpAppDiscoverTabNotificationAllChannels{
  654. "HelpAppDiscoverTabNotificationAllChannels",
  655. base::FEATURE_DISABLED_BY_DEFAULT};
  656. // Enable showing search results from the help app in the launcher.
  657. const base::Feature kHelpAppLauncherSearch{"HelpAppLauncherSearch",
  658. base::FEATURE_DISABLED_BY_DEFAULT};
  659. // Enable ChromeOS hibernation features.
  660. const base::Feature kHibernate{"Hibernate", base::FEATURE_DISABLED_BY_DEFAULT};
  661. // Enables image search for productivity launcher.
  662. const base::Feature kProductivityLauncherImageSearch{
  663. "ProductivityLauncherImageSearch", base::FEATURE_DISABLED_BY_DEFAULT};
  664. // Enables or disables the flag to synchronize launcher item colors. It is
  665. // in effect only when kLauncherAppSort is enabled.
  666. const base::Feature kLauncherItemColorSync{"LauncherItemColorSync",
  667. base::FEATURE_ENABLED_BY_DEFAULT};
  668. // Enables a privacy improvement that removes wrongly configured hidden
  669. // networks and mitigates the creation of these networks. crbug/1327803.
  670. const base::Feature kHiddenNetworkMigration{"HiddenNetworkMigration",
  671. base::FEATURE_DISABLED_BY_DEFAULT};
  672. // Enables a warning about connecting to hidden WiFi networks.
  673. // https://crbug.com/903908
  674. const base::Feature kHiddenNetworkWarning{"HiddenNetworkWarning",
  675. base::FEATURE_DISABLED_BY_DEFAULT};
  676. // Enables hiding of ARC media notifications. If this is enabled, all ARC
  677. // notifications that are of the media type will not be shown. This
  678. // is because they will be replaced by native media session notifications.
  679. // TODO(beccahughes): Remove after launch. (https://crbug.com/897836)
  680. const base::Feature kHideArcMediaNotifications{
  681. "HideArcMediaNotifications", base::FEATURE_ENABLED_BY_DEFAULT};
  682. // When enabled, shelf navigation controls and the overview tray item will be
  683. // removed from the shelf in tablet mode (unless otherwise specified by user
  684. // preferences, or policy).
  685. const base::Feature kHideShelfControlsInTabletMode{
  686. "HideShelfControlsInTabletMode", base::FEATURE_ENABLED_BY_DEFAULT};
  687. // Enables in-progress downloads notification suppression with the productivity
  688. // feature that aims to reduce context switching by enabling users to collect
  689. // content and transfer or access it later.
  690. const base::Feature kHoldingSpaceInProgressDownloadsNotificationSuppression{
  691. "HoldingSpaceInProgressNotificationSuppression",
  692. base::FEATURE_DISABLED_BY_DEFAULT};
  693. // Enables rebranding of holding space to convey the relationship with
  694. // Files to simplify feature comprehension.
  695. const base::Feature kHoldingSpaceRebrand{"HoldingSpaceRebrand",
  696. base::FEATURE_DISABLED_BY_DEFAULT};
  697. // Enables suggestions in the pinned files section of Holding Space.
  698. const base::Feature kHoldingSpaceSuggestions{"HoldingSpaceSuggestions",
  699. base::FEATURE_DISABLED_BY_DEFAULT};
  700. // Control whether the hotspot tethering is enabled. When enabled, it will allow
  701. // the Chromebook to share its cellular internet connection to other devices.
  702. const base::Feature kHotspot{"Hotspot", base::FEATURE_DISABLED_BY_DEFAULT};
  703. // Controls whether the snooping protection prototype is enabled.
  704. const base::Feature kSnoopingProtection{"SnoopingProtection",
  705. base::FEATURE_DISABLED_BY_DEFAULT};
  706. // Controls whether to start AssistantAudioDecoder service on demand (at query
  707. // response time).
  708. const base::Feature kStartAssistantAudioDecoderOnDemand(
  709. "StartAssistantAudioDecoderOnDemand",
  710. base::FEATURE_DISABLED_BY_DEFAULT);
  711. // Enable or disable a new header bar for the ChromeOS virtual keyboard.
  712. const base::Feature kVirtualKeyboardNewHeader{
  713. "VirtualKeyboardNewHeader", base::FEATURE_DISABLED_BY_DEFAULT};
  714. // If enabled, used to configure the heuristic rules for some advanced IME
  715. // features (e.g. auto-correct).
  716. const base::Feature kImeRuleConfig{"ImeRuleConfig",
  717. base::FEATURE_DISABLED_BY_DEFAULT};
  718. // Enable or disable system emoji picker falling back to clipboard.
  719. const base::Feature kImeSystemEmojiPickerClipboard{
  720. "SystemEmojiPickerClipboard", base::FEATURE_DISABLED_BY_DEFAULT};
  721. // Enable or disable system emoji picker extension
  722. const base::Feature kImeSystemEmojiPickerExtension{
  723. "SystemEmojiPickerExtension", base::FEATURE_DISABLED_BY_DEFAULT};
  724. // Enable or disable system emoji picker search extension
  725. const base::Feature kImeSystemEmojiPickerSearchExtension{
  726. "SystemEmojiPickerSearchExtension", base::FEATURE_DISABLED_BY_DEFAULT};
  727. // Enable or disable a new UI for stylus writing on the virtual keyboard
  728. const base::Feature kImeStylusHandwriting{"StylusHandwriting",
  729. base::FEATURE_DISABLED_BY_DEFAULT};
  730. // Enables improved keyboard shortcuts for activating desks at specified indices
  731. // and toggling whether a window is assigned to all desks.
  732. const base::Feature kImprovedDesksKeyboardShortcuts{
  733. "ImprovedDesksKeyboardShortcuts", base::FEATURE_ENABLED_BY_DEFAULT};
  734. // Controls whether to show new improved UI for cryptohome errors that happened
  735. // during login. UI contains links to help center and might provide actions
  736. // that can be taken to resolve the problem.
  737. const base::Feature kImprovedLoginErrorHandling{
  738. "ImprovedLoginErrorHandling", base::FEATURE_DISABLED_BY_DEFAULT};
  739. // Enables or disables Instant Tethering on ChromeOS.
  740. const base::Feature kInstantTethering{"InstantTethering",
  741. base::FEATURE_ENABLED_BY_DEFAULT};
  742. // Enables Jelly features.
  743. const base::Feature kJelly{"Jelly", base::FEATURE_DISABLED_BY_DEFAULT};
  744. // Enables Jellyroll features.
  745. const base::Feature kJellyroll{"Jellyroll", base::FEATURE_DISABLED_BY_DEFAULT};
  746. // Enables IME button in the floating accessibility menu for the Kiosk session.
  747. const base::Feature kKioskEnableImeButton{"KioskEnableImeButton",
  748. base::FEATURE_DISABLED_BY_DEFAULT};
  749. // Enables to use lacros-chrome as the only web browser on ChromeOS.
  750. // This works only when both LacrosSupport and LacrosPrimary below are enabled.
  751. // NOTE: Use crosapi::browser_util::IsAshWebBrowserEnabled() instead of checking
  752. // the feature directly. Similar to LacrosSupport and LacrosPrimary,
  753. // this may not be allowed depending on user types and/or policies.
  754. const base::Feature kLacrosOnly{"LacrosOnly",
  755. base::FEATURE_DISABLED_BY_DEFAULT};
  756. // Enables to use lacros-chrome as a primary web browser on ChromeOS.
  757. // This works only when LacrosSupport below is enabled.
  758. // NOTE: Use crosapi::browser_util::IsLacrosPrimary() instead of checking
  759. // the feature directly. Similar to LacrosSupport, this may not be allowed
  760. // depending on user types and/or policies.
  761. const base::Feature kLacrosPrimary{"LacrosPrimary",
  762. base::FEATURE_DISABLED_BY_DEFAULT};
  763. // Enables "Linux and ChromeOS" support. Allows a Linux version of Chrome
  764. // ("lacros-chrome") to run as a Wayland client with this instance of Chrome
  765. // ("ash-chrome") acting as the Wayland server and window manager.
  766. // NOTE: Use crosapi::browser_util::IsLacrosEnabled() instead of checking the
  767. // feature directly. Lacros is not allowed for certain user types and can be
  768. // disabled by policy. These restrictions will be lifted when Lacros development
  769. // is complete.
  770. const base::Feature kLacrosSupport{"LacrosSupport",
  771. base::FEATURE_DISABLED_BY_DEFAULT};
  772. // Emergency switch to turn off profile migration.
  773. const base::Feature kLacrosProfileMigrationForceOff{
  774. "LacrosProfileMigrationForceOff", base::FEATURE_DISABLED_BY_DEFAULT};
  775. // Enable this to turn on profile migration for non-googlers. Currently the
  776. // feature is only limited to googlers only.
  777. const base::Feature kLacrosProfileMigrationForAnyUser{
  778. "LacrosProfileMigrationForAnyUser", base::FEATURE_DISABLED_BY_DEFAULT};
  779. // If enabled, use `MoveMigrator` instead of `CopyMigrator` to migrate data.
  780. // `MoveMigrator` moves data from ash to lacros instead of copying them.
  781. const base::Feature kLacrosMoveProfileMigration{
  782. "LacrosMoveProfileMigration", base::FEATURE_DISABLED_BY_DEFAULT};
  783. // Enables or disables sorting app icons shown on the launcher.
  784. const base::Feature kLauncherAppSort{"LauncherAppSort",
  785. base::FEATURE_ENABLED_BY_DEFAULT};
  786. // When enabled, app list folders will be moved so app list remains sorted when
  787. // they get renamed, or created.
  788. const base::Feature kLauncherFolderRenameKeepsSortOrder{
  789. "LauncherFolderRenameKeepsSortOrder", base::FEATURE_ENABLED_BY_DEFAULT};
  790. // When enabled, the app list sort nudge and toast will have additional
  791. // buttons for dismissal.
  792. const base::Feature kLauncherDismissButtonsOnSortNudgeAndToast{
  793. "LauncherDismissButtonsOnSortNudgeAndToast",
  794. base::FEATURE_ENABLED_BY_DEFAULT};
  795. // When enabled, adds UI to the launcher that allows the user to hide the
  796. // continue tasks and recent apps.
  797. const base::Feature kLauncherHideContinueSection{
  798. "LauncherHideContinueSection", base::FEATURE_ENABLED_BY_DEFAULT};
  799. // Uses short intervals for launcher nudge for testing if enabled.
  800. const base::Feature kLauncherNudgeShortInterval{
  801. "LauncherNudgeShortInterval", base::FEATURE_DISABLED_BY_DEFAULT};
  802. // If enabled, the launcher nudge prefs will be reset at the start of each new
  803. // user session.
  804. const base::Feature kLauncherNudgeSessionReset{
  805. "LauncherNudgeSessionReset", base::FEATURE_DISABLED_BY_DEFAULT};
  806. // Enables new flow for license packaged devices with enterprise license.
  807. const base::Feature kLicensePackagedOobeFlow{"LicensePackagedOobeFlow",
  808. base::FEATURE_ENABLED_BY_DEFAULT};
  809. // Supports the feature to hide sensitive content in notifications on the lock
  810. // screen. This option is effective when |kLockScreenNotification| is enabled.
  811. const base::Feature kLockScreenHideSensitiveNotificationsSupport{
  812. "LockScreenHideSensitiveNotificationsSupport",
  813. base::FEATURE_DISABLED_BY_DEFAULT};
  814. // Enables inline reply on notifications on the lock screen.
  815. // This option is effective when |kLockScreenNotification| is enabled.
  816. const base::Feature kLockScreenInlineReply{"LockScreenInlineReply",
  817. base::FEATURE_DISABLED_BY_DEFAULT};
  818. // Enables notifications on the lock screen.
  819. const base::Feature kLockScreenNotifications{"LockScreenNotifications",
  820. base::FEATURE_DISABLED_BY_DEFAULT};
  821. // Enables lock screen media controls UI and use of media keys on the lock
  822. // screen.
  823. const base::Feature kLockScreenMediaControls{"LockScreenMediaControls",
  824. base::FEATURE_ENABLED_BY_DEFAULT};
  825. // Feature to allow MAC address randomization to be enabled for WiFi networks.
  826. const base::Feature kMacAddressRandomization{"MacAddressRandomization",
  827. base::FEATURE_DISABLED_BY_DEFAULT};
  828. // Enables the redesigned managed device info UI in the system tray.
  829. const base::Feature kManagedDeviceUIRedesign{"ManagedDeviceUIRedesign",
  830. base::FEATURE_ENABLED_BY_DEFAULT};
  831. // Whether PDF files are opened by default in the ChromeOS media app.
  832. const base::Feature kMediaAppHandlesPdf{"MediaAppHandlesPdf",
  833. base::FEATURE_ENABLED_BY_DEFAULT};
  834. // Within the ChromeOS media app, reveals the button to edit the current image
  835. // in Photos.
  836. const base::Feature kMediaAppPhotosIntegrationImage{
  837. "MediaAppPhotosIntegrationImage", base::FEATURE_DISABLED_BY_DEFAULT};
  838. // Within the ChromeOS media app, reveals the button to edit the current video
  839. // in Photos.
  840. const base::Feature kMediaAppPhotosIntegrationVideo{
  841. "MediaAppPhotosIntegrationVideo", base::FEATURE_DISABLED_BY_DEFAULT};
  842. // Feature to continuously log PSI memory pressure data to UMA.
  843. const base::Feature kMemoryPressureMetricsDetail{
  844. "MemoryPressureMetricsDetail", base::FEATURE_ENABLED_BY_DEFAULT};
  845. // Controls how frequently memory pressure is logged
  846. const base::FeatureParam<int> kMemoryPressureMetricsDetailLogPeriod{
  847. &kMemoryPressureMetricsDetail, "period", 10};
  848. // Enables notification of when a microphone-using app is launched while the
  849. // microphone is muted.
  850. const base::Feature kMicMuteNotifications{"MicMuteNotifications",
  851. base::FEATURE_ENABLED_BY_DEFAULT};
  852. // Disables the deprecated Messages cross-device integration, to be used
  853. // along side the flag preinstall-by-default (kMessagesPreinstall).
  854. const base::Feature kDisableMessagesCrossDeviceIntegration{
  855. "DisableMessagesCrossDeviceIntegration", base::FEATURE_ENABLED_BY_DEFAULT};
  856. // Controls whether to enable the requirement of a minimum chrome version on the
  857. // device through the policy DeviceMinimumVersion. If the requirement is
  858. // not met and the warning time in the policy has expired, the user is
  859. // restricted from using the session.
  860. const base::Feature kMinimumChromeVersion{"MinimumChromeVersion",
  861. base::FEATURE_ENABLED_BY_DEFAULT};
  862. // Enables the use of Mojo by Chrome-process code to communicate with Power
  863. // Manager. In order to use mojo, this feature must be turned on and a callsite
  864. // must use PowerManagerMojoClient::Get().
  865. const base::Feature kMojoDBusRelay{"MojoDBusRelay",
  866. base::FEATURE_DISABLED_BY_DEFAULT};
  867. // Enables support for multilingual assistive typing on ChromeOS.
  868. const base::Feature kMultilingualTyping{"MultilingualTyping",
  869. base::FEATURE_DISABLED_BY_DEFAULT};
  870. // Enables Nearby Connections to specificy KeepAlive interval and timeout while
  871. // also making the Nearby Connections WebRTC defaults longer.
  872. const base::Feature kNearbyKeepAliveFix{"NearbyKeepAliveFix",
  873. base::FEATURE_ENABLED_BY_DEFAULT};
  874. // Controls whether new Lockscreen reauth layout is shown or not.
  875. const base::Feature kNewLockScreenReauthLayout{
  876. "NewLockScreenReauthLayout", base::FEATURE_ENABLED_BY_DEFAULT};
  877. // Enables the Night Light feature.
  878. const base::Feature kNightLight{"NightLight", base::FEATURE_ENABLED_BY_DEFAULT};
  879. // Enabled notification expansion animation.
  880. const base::Feature kNotificationExpansionAnimation{
  881. "NotificationExpansionAnimation", base::FEATURE_DISABLED_BY_DEFAULT};
  882. // Shorten notification timeouts to 6 seconds.
  883. const base::Feature kNotificationExperimentalShortTimeouts{
  884. "NotificationExperimentalShortTimeouts", base::FEATURE_ENABLED_BY_DEFAULT};
  885. // Enables notification scroll bar in UnifiedSystemTray.
  886. const base::Feature kNotificationScrollBar{"NotificationScrollBar",
  887. base::FEATURE_DISABLED_BY_DEFAULT};
  888. // Enables notifications to be shown within context menus.
  889. const base::Feature kNotificationsInContextMenu{
  890. "NotificationsInContextMenu", base::FEATURE_DISABLED_BY_DEFAULT};
  891. // Enables new notifications UI and grouped notifications.
  892. const base::Feature kNotificationsRefresh{"NotificationsRefresh",
  893. base::FEATURE_ENABLED_BY_DEFAULT};
  894. // Controls whether to enable on-device grammar check service.
  895. const base::Feature kOnDeviceGrammarCheck{"OnDeviceGrammarCheck",
  896. base::FEATURE_ENABLED_BY_DEFAULT};
  897. // Whether the device supports on-device speech recognition.
  898. // Forwarded to LaCrOS as BrowserInitParams::is_ondevice_speech_supported.
  899. const base::Feature kOnDeviceSpeechRecognition{
  900. "OnDeviceSpeechRecognition", base::FEATURE_DISABLED_BY_DEFAULT};
  901. // If enabled, EULA and ARC Terms of Service screens are skipped and merged
  902. // into Consolidated Consent Screen.
  903. const base::Feature kOobeConsolidatedConsent{"OobeConsolidatedConsent",
  904. base::FEATURE_ENABLED_BY_DEFAULT};
  905. // Enables or disables the ChromeOS OOBE HID Detection Revamp, which updates
  906. // the OOBE HID detection screen UI and related infrastructure. See
  907. // https://crbug.com/1299099.
  908. const base::Feature kOobeHidDetectionRevamp{"OobeHidDetectionRevamp",
  909. base::FEATURE_DISABLED_BY_DEFAULT};
  910. // Enables or disables the Oobe quick start flow.
  911. const base::Feature kOobeQuickStart{"OobeQuickStart",
  912. base::FEATURE_DISABLED_BY_DEFAULT};
  913. // If enabled, the new recommend apps screen is shown.
  914. const base::Feature kOobeNewRecommendApps{"OobeNewRecommendApps",
  915. base::FEATURE_ENABLED_BY_DEFAULT};
  916. // Removes "Shut down" button from OOBE, except first login screen and
  917. // successful enrollment step.
  918. const base::Feature kOobeRemoveShutdownButton{"OobeRemoveShutdownButton",
  919. base::FEATURE_ENABLED_BY_DEFAULT};
  920. // Enables StartDemoModeSetupForTesting call.
  921. const base::Feature kOobeStartDemoModeForTesting{
  922. "OobeStartDemoModeForTesting", base::FEATURE_DISABLED_BY_DEFAULT};
  923. // Enables or disables the feedback tool new UX on ChromeOS.
  924. // This tool under development will be rolled out via Finch.
  925. // Enabling this flag will use the new feedback tool instead of the current
  926. // tool on CrOS.
  927. const base::Feature kOsFeedback{"OsFeedback",
  928. base::FEATURE_DISABLED_BY_DEFAULT};
  929. // If enabled, a new App Notifications subpage will appear in CrOS Apps section.
  930. const base::Feature kOsSettingsAppNotificationsPage{
  931. "OsSettingsAppNotificationsPage", base::FEATURE_ENABLED_BY_DEFAULT};
  932. const base::Feature kOverviewButton{"OverviewButton",
  933. base::FEATURE_DISABLED_BY_DEFAULT};
  934. // Enables the option to snap windows by thirds for split view.
  935. const base::Feature kPartialSplit{"PartialSplit",
  936. base::FEATURE_DISABLED_BY_DEFAULT};
  937. // Enables a notification warning users that their Thunderbolt device is not
  938. // supported on their CrOS device.
  939. const base::Feature kPcieBillboardNotification{
  940. "PcieBillboardNotification", base::FEATURE_DISABLED_BY_DEFAULT};
  941. // Limits the items on the shelf to the ones associated with windows the
  942. // currently active desk.
  943. const base::Feature kPerDeskShelf{"PerDeskShelf",
  944. base::FEATURE_DISABLED_BY_DEFAULT};
  945. // Allows tablet mode split screen to resize by moving windows instead of
  946. // resizing. This reduces jank on low end devices.
  947. const base::Feature kPerformantSplitViewResizing{
  948. "PerformantSplitViewResizing", base::FEATURE_ENABLED_BY_DEFAULT};
  949. // Provides a UI for users to customize their wallpapers, screensaver and
  950. // avatars.
  951. const base::Feature kPersonalizationHub{"PersonalizationHub",
  952. base::FEATURE_ENABLED_BY_DEFAULT};
  953. // Provides a UI for users to view information about their Android phone
  954. // and perform phone-side actions within ChromeOS.
  955. const base::Feature kPhoneHub{"PhoneHub", base::FEATURE_ENABLED_BY_DEFAULT};
  956. // Enables the Camera Roll feature in Phone Hub, which allows users to access
  957. // recent photos and videos taken on a connected Android device
  958. const base::Feature kPhoneHubCameraRoll{"PhoneHubCameraRoll",
  959. base::FEATURE_ENABLED_BY_DEFAULT};
  960. // Enable PhoneHub features setup error handling, which handles different
  961. // setup response from remote phone device.
  962. const base::Feature kPhoneHubFeatureSetupErrorHandling{
  963. "PhoneHubFeatureSetupErrorHandling", base::FEATURE_ENABLED_BY_DEFAULT};
  964. // Enables the incoming/ongoing call notification feature in Phone Hub.
  965. const base::Feature kPhoneHubCallNotification{
  966. "PhoneHubCallNotification", base::FEATURE_DISABLED_BY_DEFAULT};
  967. const base::Feature kPhoneHubMonochromeNotificationIcons{
  968. "PhoneHubMonochromeNotificationIcons", base::FEATURE_ENABLED_BY_DEFAULT};
  969. // Enables rounded corners for the Picture-in-picture window.
  970. const base::Feature kPipRoundedCorners{"PipRoundedCorners",
  971. base::FEATURE_ENABLED_BY_DEFAULT};
  972. // Enables or disables the preference of using constant frame rate for camera
  973. // when streaming.
  974. const base::Feature kPreferConstantFrameRate{"PreferConstantFrameRate",
  975. base::FEATURE_DISABLED_BY_DEFAULT};
  976. // Enables to allocate more video capture buffers.
  977. const base::Feature kMoreVideoCaptureBuffers{"MoreVideoCaptureBuffers",
  978. base::FEATURE_DISABLED_BY_DEFAULT};
  979. // Enables showing notification and status area indicators when an app is
  980. // using camera/microphone.
  981. const base::Feature kPrivacyIndicators{"PrivacyIndicators",
  982. base::FEATURE_DISABLED_BY_DEFAULT};
  983. // Enables a bubble-based launcher in clamshell mode. Changes the suggestions
  984. // that appear in the launcher in both clamshell and tablet modes. Removes pages
  985. // from the apps grid. This feature was previously named "AppListBubble".
  986. // https://crbug.com/1204551
  987. const base::Feature kProductivityLauncher{"ProductivityLauncher",
  988. base::FEATURE_ENABLED_BY_DEFAULT};
  989. // Controls whether to enable Projector.
  990. const base::Feature kProjector{"Projector", base::FEATURE_ENABLED_BY_DEFAULT};
  991. // Controls whether to enable Projector for managed users.
  992. const base::Feature kProjectorManagedUser{"ProjectorManagedUser",
  993. base::FEATURE_ENABLED_BY_DEFAULT};
  994. // Controls whether to enable Projector annotator tools.
  995. // The annotator tools are based on the ink library.
  996. const base::Feature kProjectorAnnotator{"ProjectorAnnotator",
  997. base::FEATURE_ENABLED_BY_DEFAULT};
  998. // Controls whether the Projector app launches in debug mode, with more detailed
  999. // error messages.
  1000. const base::Feature kProjectorAppDebug{"ProjectorAppDebug",
  1001. base::FEATURE_DISABLED_BY_DEFAULT};
  1002. // Controls whether the Projector exclude transcript feature is enabled.
  1003. const base::Feature kProjectorExcludeTranscript{
  1004. "ProjectorExcludeTranscript", base::FEATURE_ENABLED_BY_DEFAULT};
  1005. // Controls whether Projector's tutorial videos are displayed.
  1006. const base::Feature kProjectorTutorialVideoView(
  1007. "ProjectorTutorialVideoView",
  1008. base::FEATURE_ENABLED_BY_DEFAULT);
  1009. // Controls whether Projector use custom thumbnail in gallery page.
  1010. const base::Feature kProjectorCustomThumbnail("kProjectorCustomThumbnail",
  1011. base::FEATURE_ENABLED_BY_DEFAULT);
  1012. // Controls whether to ignore policy setting for enabling Projector for managed
  1013. // users.
  1014. const base::Feature kProjectorManagedUserIgnorePolicy(
  1015. "ProjectorManagedUserIgnorePolicy",
  1016. base::FEATURE_DISABLED_BY_DEFAULT);
  1017. // Controls whether to show pseduo transcript that is shorter than the
  1018. // threshold.
  1019. const base::Feature kProjectorShowShortPseudoTranscript(
  1020. "ProjectorShowShortPseudoTranscript",
  1021. base::FEATURE_ENABLED_BY_DEFAULT);
  1022. // Controls whether to update the indexable text when metadata file gets
  1023. // uploaded.
  1024. const base::Feature kProjectorUpdateIndexableText(
  1025. "ProjectorUpdateIndexableText",
  1026. base::FEATURE_ENABLED_BY_DEFAULT);
  1027. // Controls whether to use OAuth token for getting streaming URL from
  1028. // get_video_info endpoint.
  1029. const base::Feature kProjectorUseOAuthForGetVideoInfo(
  1030. "ProjectorUseOAuthForGetVideoInfo",
  1031. base::FEATURE_ENABLED_BY_DEFAULT);
  1032. // Controls whether to allow viewing screencast with local playback URL when
  1033. // screencast is being transcoded.
  1034. const base::Feature kProjectorLocalPlayback("ProjectorLocalPlayback",
  1035. base::FEATURE_DISABLED_BY_DEFAULT);
  1036. // Enable or disable quick settings revamped view.
  1037. const base::Feature kQsRevamp{"QsRevamp", base::FEATURE_DISABLED_BY_DEFAULT};
  1038. // Controls whether the quick dim prototype is enabled.
  1039. const base::Feature kQuickDim{"QuickDim", base::FEATURE_ENABLED_BY_DEFAULT};
  1040. // Enables or disables the Quick Settings Network revamp, which updates Network
  1041. // Quick Settings UI and related infrastructure. See https://crbug.com/1169479.
  1042. const base::Feature kQuickSettingsNetworkRevamp{
  1043. "QuickSettingsNetworkRevamp", base::FEATURE_DISABLED_BY_DEFAULT};
  1044. // Enables or disables fingerprint quick unlock.
  1045. const base::Feature kQuickUnlockFingerprint{"QuickUnlockFingerprint",
  1046. base::FEATURE_DISABLED_BY_DEFAULT};
  1047. // Controls whether the PIN auto submit feature is enabled.
  1048. const base::Feature kQuickUnlockPinAutosubmit{"QuickUnlockPinAutosubmit",
  1049. base::FEATURE_ENABLED_BY_DEFAULT};
  1050. // TODO(crbug.com/1104164) - Remove this once most
  1051. // users have their preferences backfilled.
  1052. // Controls whether the PIN auto submit backfill operation should be performed.
  1053. const base::Feature kQuickUnlockPinAutosubmitBackfill{
  1054. "QuickUnlockPinAutosubmitBackfill", base::FEATURE_ENABLED_BY_DEFAULT};
  1055. // Enables redirect to default IdP without interstitial step.
  1056. const base::Feature kRedirectToDefaultIdP{"RedirectToDefaultIdP",
  1057. base::FEATURE_ENABLED_BY_DEFAULT};
  1058. // Enables or disables Release Notes notifications on non-stable ChromeOS
  1059. // channels. Used for testing.
  1060. const base::Feature kReleaseNotesNotificationAllChannels{
  1061. "ReleaseNotesNotificationAllChannels", base::FEATURE_DISABLED_BY_DEFAULT};
  1062. // Enables or disables Release Notes suggestion chip on ChromeOS.
  1063. const base::Feature kReleaseNotesSuggestionChip{
  1064. "ReleaseNotesSuggestionChip", base::FEATURE_ENABLED_BY_DEFAULT};
  1065. // Enables or disables display of the release track in the system tray and quick
  1066. // settings, for devices running on channels other than "stable."
  1067. const base::Feature kReleaseTrackUi{"ReleaseTrackUi",
  1068. base::FEATURE_DISABLED_BY_DEFAULT};
  1069. // When enabled, the overivew and desk reverse scrolling behaviors are changed
  1070. // and if the user performs the old gestures, a notification or toast will show
  1071. // up.
  1072. // TODO(https://crbug.com/1107183): Remove this after the feature is launched.
  1073. const base::Feature kReverseScrollGestures{"EnableReverseScrollGestures",
  1074. base::FEATURE_ENABLED_BY_DEFAULT};
  1075. const base::Feature kRgbKeyboard = {"RgbKeyboard",
  1076. base::FEATURE_ENABLED_BY_DEFAULT};
  1077. // Enables the system tray to show more information in larger screen.
  1078. const base::Feature kScalableStatusArea{"ScalableStatusArea",
  1079. base::FEATURE_ENABLED_BY_DEFAULT};
  1080. // Enables the system tray to show more information in larger screen.
  1081. const base::Feature kSeamlessRefreshRateSwitching{
  1082. "SeamlessRefreshRateSwitching", base::FEATURE_DISABLED_BY_DEFAULT};
  1083. // Controls whether to enable kSecondaryGoogleAccountUsage policy.
  1084. const base::Feature kSecondaryGoogleAccountUsage{
  1085. "SecondaryGoogleAccountUsage", base::FEATURE_ENABLED_BY_DEFAULT};
  1086. // Overrides semantic colors in ChromeOS for easier debugging.
  1087. const base::Feature kSemanticColorsDebugOverride{
  1088. "SemanticColorDebugOverride", base::FEATURE_DISABLED_BY_DEFAULT};
  1089. // Enables displaying separate network icons for different networks types.
  1090. // https://crbug.com/902409
  1091. const base::Feature kSeparateNetworkIcons{"SeparateNetworkIcons",
  1092. base::FEATURE_DISABLED_BY_DEFAULT};
  1093. // Enables or disables long kill timeout for session manager daemon. When
  1094. // enabled, session manager daemon waits for a longer time (e.g. 12s) for chrome
  1095. // to exit before sending SIGABRT. Otherwise, it uses the default time out
  1096. // (currently 3s).
  1097. const base::Feature kSessionManagerLongKillTimeout{
  1098. "SessionManagerLongKillTimeout", base::FEATURE_DISABLED_BY_DEFAULT};
  1099. // If enabled, the session manager daemon will abort the browser if its
  1100. // liveness checker detects a hang, i.e. the browser fails to acknowledge and
  1101. // respond sufficiently to periodic pings. IMPORTANT NOTE: the feature name
  1102. // here must match exactly the name of the feature in the open-source ChromeOS
  1103. // file session_manager_service.cc.
  1104. const base::Feature kSessionManagerLivenessCheck{
  1105. "SessionManagerLivenessCheck", base::FEATURE_ENABLED_BY_DEFAULT};
  1106. // Removes notifier settings from quick settings view.
  1107. const base::Feature kSettingsAppNotificationSettings{
  1108. "SettingsAppNotificationSettings", base::FEATURE_DISABLED_BY_DEFAULT};
  1109. // Whether theme changes should be animated for the Settings app.
  1110. const base::Feature kSettingsAppThemeChangeAnimation{
  1111. "SettingsAppThemeChangeAnimation", base::FEATURE_DISABLED_BY_DEFAULT};
  1112. // Whether we should track auto-hide preferences separately between clamshell
  1113. // and tablet.
  1114. const base::Feature kShelfAutoHideSeparation{"ShelfAutoHideSeparation",
  1115. base::FEATURE_DISABLED_BY_DEFAULT};
  1116. // Enables shelf gestures (swipe to show hotseat, swipe to go home or overview)
  1117. // in tablet mode when virtual keyboard is shown.
  1118. const base::Feature kShelfGesturesWithVirtualKeyboard{
  1119. "ShelfGesturesWithVirtualKeyboard", base::FEATURE_ENABLED_BY_DEFAULT};
  1120. // Enables launcher nudge that animates the home button to guide users to open
  1121. // the launcher.
  1122. const base::Feature kShelfLauncherNudge{"ShelfLauncherNudge",
  1123. base::FEATURE_ENABLED_BY_DEFAULT};
  1124. // Enables the shelf party.
  1125. const base::Feature kShelfParty{"ShelfParty",
  1126. base::FEATURE_DISABLED_BY_DEFAULT};
  1127. // Enables Shelf Palm Rejection in tablet mode by defining a pixel offset for
  1128. // the swipe gesture to show the extended hotseat. Limited to certain apps.
  1129. const base::Feature kShelfPalmRejectionSwipeOffset{
  1130. "ShelfPalmRejectionSwipeOffset", base::FEATURE_ENABLED_BY_DEFAULT};
  1131. // Enables or disables the new shimless rma flow.
  1132. const base::Feature kShimlessRMAFlow{"ShimlessRMAFlow",
  1133. base::FEATURE_DISABLED_BY_DEFAULT};
  1134. // Enables or disables launching Shimless RMA as a standalone app.
  1135. const base::Feature kShimlessRMAEnableStandalone{
  1136. "ShimlessRMAEnableStandalone", base::FEATURE_DISABLED_BY_DEFAULT};
  1137. // Enables or disables the OS update page in the shimless RMA flow.
  1138. const base::Feature kShimlessRMAOsUpdate{"ShimlessRMAOsUpdate",
  1139. base::FEATURE_DISABLED_BY_DEFAULT};
  1140. // Enables or disables the dark mode in the shimless RMA flow.
  1141. const base::Feature kShimlessRMADisableDarkMode{
  1142. "ShimlessRMADisableDarkMode", base::FEATURE_ENABLED_BY_DEFAULT};
  1143. // Enables or disables a toggle to enable Bluetooth debug logs.
  1144. const base::Feature kShowBluetoothDebugLogToggle{
  1145. "ShowBluetoothDebugLogToggle", base::FEATURE_ENABLED_BY_DEFAULT};
  1146. // Shows the Play Store icon in Demo Mode.
  1147. const base::Feature kShowPlayInDemoMode{"ShowPlayInDemoMode",
  1148. base::FEATURE_ENABLED_BY_DEFAULT};
  1149. // Enables the shutdown confirmation bubble from the login shelf view.
  1150. const base::Feature kShutdownConfirmationBubble{
  1151. "ShutdownConfirmationBubble", base::FEATURE_DISABLED_BY_DEFAULT};
  1152. // Enables or disables enterprise policy control for SIM PIN Lock.
  1153. const base::Feature kSimLockPolicy{"SimLockPolicy",
  1154. base::FEATURE_DISABLED_BY_DEFAULT};
  1155. // Uses experimental component version for smart dim.
  1156. const base::Feature kSmartDimExperimentalComponent{
  1157. "SmartDimExperimentalComponent", base::FEATURE_DISABLED_BY_DEFAULT};
  1158. // Disconnects bluetooth connection when screen turns off.
  1159. const base::Feature kSmartLockBluetoothScreenOffFix{
  1160. "SmartLockBluetoothScreenOffFix", base::FEATURE_DISABLED_BY_DEFAULT};
  1161. // Deprecates Sign in with Smart Lock feature. Hides Smart Lock at the sign in
  1162. // screen, removes the Smart Lock subpage in settings, and shows a one-time
  1163. // notification for users who previously had this feature enabled.
  1164. const base::Feature kSmartLockSignInRemoved{"SmartLockSignInRemoved",
  1165. base::FEATURE_ENABLED_BY_DEFAULT};
  1166. // Replaces Smart Lock UI in lock screen password box with new UI similar to
  1167. // fingerprint auth. Adds Smart Lock to "Lock screen and sign-in" section of
  1168. // settings.
  1169. const base::Feature kSmartLockUIRevamp{"SmartLockUIRevamp",
  1170. base::FEATURE_DISABLED_BY_DEFAULT};
  1171. // This feature:
  1172. // - Categorizes all sync data types into two large categories:
  1173. // - OS-related sync data types (WiFi passwords and OS preferences, etc.).
  1174. // Can be configured from OS Sync Settings.
  1175. // - Browser-related sync data types (bookmarks, browser preferences, etc.).
  1176. // Can be configured from Browser Sync Settings.
  1177. // - Changes a bunch of UIs to accommodate for this categorization.
  1178. const base::Feature kSyncSettingsCategorization{
  1179. "SyncSettingsCategorization", base::FEATURE_ENABLED_BY_DEFAULT};
  1180. // Enables battery indicator for styluses in the palette tray
  1181. const base::Feature kStylusBatteryStatus{"StylusBatteryStatus",
  1182. base::FEATURE_ENABLED_BY_DEFAULT};
  1183. // Enables or disables using the system input engine for physical typing in
  1184. // Chinese.
  1185. const base::Feature kSystemChinesePhysicalTyping{
  1186. "SystemChinesePhysicalTyping", base::FEATURE_ENABLED_BY_DEFAULT};
  1187. // Enables or disables the System Extensions platform.
  1188. const base::Feature kSystemExtensions{"SystemExtensions",
  1189. base::FEATURE_DISABLED_BY_DEFAULT};
  1190. // Enables or disables using the system input engine for physical typing in
  1191. // Japanese.
  1192. const base::Feature kSystemJapanesePhysicalTyping{
  1193. "SystemJapanesePhysicalTyping", base::FEATURE_DISABLED_BY_DEFAULT};
  1194. // Enables or disables using the system input engine for physical typing in
  1195. // transliteration input methods.
  1196. const base::Feature kSystemTransliterationPhysicalTyping{
  1197. "SystemTransliterationPhysicalTyping", base::FEATURE_ENABLED_BY_DEFAULT};
  1198. // Enables or disables the shadows of system tray bubbles.
  1199. const base::Feature kSystemTrayShadow{"SystemTrayShadow",
  1200. base::FEATURE_DISABLED_BY_DEFAULT};
  1201. // Enables the ChromeOS system-proxy daemon, only for system services. This
  1202. // means that system services like tlsdate, update engine etc. can opt to be
  1203. // authenticated to a remote HTTP web proxy via system-proxy.
  1204. const base::Feature kSystemProxyForSystemServices{
  1205. "SystemProxyForSystemServices", base::FEATURE_DISABLED_BY_DEFAULT};
  1206. // Enables the UI to show tab cluster info.
  1207. const base::Feature kTabClusterUI{"TabClusterUI",
  1208. base::FEATURE_DISABLED_BY_DEFAULT};
  1209. // Enables ChromeOS Telemetry Extension.
  1210. const base::Feature kTelemetryExtension{"TelemetryExtension",
  1211. base::FEATURE_DISABLED_BY_DEFAULT};
  1212. // Enables the alternative emulator for the Terminal app.
  1213. const base::Feature kTerminalAlternativeEmulator{
  1214. "TerminalAlternativeEmulator", base::FEATURE_DISABLED_BY_DEFAULT};
  1215. //
  1216. // Enables Terminal System App to load from Downloads for developer testing.
  1217. // Only works in dev and canary channels.
  1218. const base::Feature kTerminalDev{"TerminalDev",
  1219. base::FEATURE_DISABLED_BY_DEFAULT};
  1220. // Enables multi-profile theme support for Terminal..
  1221. const base::Feature kTerminalMultiProfile{"TerminalMultiProfile",
  1222. base::FEATURE_DISABLED_BY_DEFAULT};
  1223. // Enables tmux integration in the Terminal System App.
  1224. const base::Feature kTerminalTmuxIntegration{"TerminalTmuxIntegration",
  1225. base::FEATURE_DISABLED_BY_DEFAULT};
  1226. // Enables the TrafficCountersHandler class to auto-reset traffic counters
  1227. // and shows Data Usage in the Celluar Settings UI.
  1228. const base::Feature kTrafficCountersEnabled{"TrafficCountersEnabled",
  1229. base::FEATURE_DISABLED_BY_DEFAULT};
  1230. // Enables trilinear filtering.
  1231. const base::Feature kTrilinearFiltering{"TrilinearFiltering",
  1232. base::FEATURE_DISABLED_BY_DEFAULT};
  1233. // Enables the Office files upload workflow to improve Office files support.
  1234. const base::Feature kUploadOfficeToCloud("UploadOfficeToCloud",
  1235. base::FEATURE_DISABLED_BY_DEFAULT);
  1236. // Uses new AuthSession-based API in cryptohome to authenticate users during
  1237. // sign-in.
  1238. const base::Feature kUseAuthsessionAuthentication{
  1239. "UseAuthsessionAuthentication", base::FEATURE_ENABLED_BY_DEFAULT};
  1240. // Uses new AuthFactor-based API when communicating with cryptohome.
  1241. const base::Feature kUseAuthFactors{"UseAuthFactors",
  1242. base::FEATURE_DISABLED_BY_DEFAULT};
  1243. // Enables using the BluetoothSystem Mojo interface for Bluetooth operations.
  1244. const base::Feature kUseBluetoothSystemInAsh{"UseBluetoothSystemInAsh",
  1245. base::FEATURE_DISABLED_BY_DEFAULT};
  1246. // When enabled, the login shelf view is placed in its own widget instead of
  1247. // sharing the shelf widget with other components.
  1248. const base::Feature kUseLoginShelfWidget{"UseLoginShelfWidget",
  1249. base::FEATURE_ENABLED_BY_DEFAULT};
  1250. // Use the staging URL as part of the "Messages" feature under "Connected
  1251. // Devices" settings.
  1252. const base::Feature kUseMessagesStagingUrl{"UseMessagesStagingUrl",
  1253. base::FEATURE_DISABLED_BY_DEFAULT};
  1254. // Remap search+click to right click instead of the legacy alt+click on
  1255. // ChromeOS.
  1256. const base::Feature kUseSearchClickForRightClick{
  1257. "UseSearchClickForRightClick", base::FEATURE_DISABLED_BY_DEFAULT};
  1258. // Use the Stork Production SM-DS address to fetch pending ESim profiles
  1259. const base::Feature kUseStorkSmdsServerAddress{
  1260. "UseStorkSmdsServerAddress", base::FEATURE_DISABLED_BY_DEFAULT};
  1261. // Use the staging server as part of the Wallpaper App to verify
  1262. // additions/removals of wallpapers.
  1263. const base::Feature kUseWallpaperStagingUrl{"UseWallpaperStagingUrl",
  1264. base::FEATURE_DISABLED_BY_DEFAULT};
  1265. // Enables or disables user activity prediction for power management on
  1266. // ChromeOS.
  1267. // Defined here rather than in //chrome alongside other related features so that
  1268. // PowerPolicyController can check it.
  1269. const base::Feature kUserActivityPrediction{"UserActivityPrediction",
  1270. base::FEATURE_ENABLED_BY_DEFAULT};
  1271. // Enable or disable bordered key for virtual keyboard on ChromeOS.
  1272. const base::Feature kVirtualKeyboardBorderedKey{
  1273. "VirtualKeyboardBorderedKey", base::FEATURE_ENABLED_BY_DEFAULT};
  1274. // Enable or disable multitouch for virtual keyboard on ChromeOS.
  1275. const base::Feature kVirtualKeyboardMultitouch{
  1276. "VirtualKeyboardMultitouch", base::FEATURE_ENABLED_BY_DEFAULT};
  1277. // Enable or disable round corners for virtual keyboard on ChromeOS.
  1278. const base::Feature kVirtualKeyboardRoundCorners{
  1279. "VirtualKeyboardRoundCorners", base::FEATURE_DISABLED_BY_DEFAULT};
  1280. // Controls whether to allow enabling wake on WiFi features in shill.
  1281. const base::Feature kWakeOnWifiAllowed{"WakeOnWifiAllowed",
  1282. base::FEATURE_DISABLED_BY_DEFAULT};
  1283. // Enable "daily" refresh wallpaper to refresh every ten seconds for testing.
  1284. const base::Feature kWallpaperFastRefresh{"WallpaperFastRefresh",
  1285. base::FEATURE_DISABLED_BY_DEFAULT};
  1286. // Enable full screen wallpaper preview in new wallpaper experience.
  1287. const base::Feature kWallpaperFullScreenPreview{
  1288. "WallpaperFullScreenPreview", base::FEATURE_ENABLED_BY_DEFAULT};
  1289. // Enable Google Photos integration in the new wallpaper experience.
  1290. const base::Feature kWallpaperGooglePhotosIntegration{
  1291. "WallpaperGooglePhotosIntegration", base::FEATURE_ENABLED_BY_DEFAULT};
  1292. // Enable different wallpapers per desk.
  1293. const base::Feature kWallpaperPerDesk{"WallpaperPerDesk",
  1294. base::FEATURE_DISABLED_BY_DEFAULT};
  1295. // Enables special handling of Chrome tab drags from a WebUI tab strip.
  1296. // These will be treated similarly to a window drag, showing split view
  1297. // indicators in tablet mode, etc. The functionality is behind a flag right now
  1298. // since it is under development.
  1299. const base::Feature kWebUITabStripTabDragIntegration{
  1300. "WebUITabStripTabDragIntegration", base::FEATURE_ENABLED_BY_DEFAULT};
  1301. // Controls whether to enable MAC Address Randomization on WiFi connection.
  1302. const base::Feature kWifiConnectMacAddressRandomization{
  1303. "WifiConnectMacAddressRandomization", base::FEATURE_DISABLED_BY_DEFAULT};
  1304. // Controls whether to enable the syncing of deletes of Wi-Fi configurations.
  1305. // This only controls sending delete events to the Chrome Sync server.
  1306. const base::Feature kWifiSyncAllowDeletes{"WifiSyncAllowDeletes",
  1307. base::FEATURE_ENABLED_BY_DEFAULT};
  1308. // Controls whether to enable syncing of Wi-Fi configurations between
  1309. // ChromeOS and a connected Android phone.
  1310. const base::Feature kWifiSyncAndroid{"WifiSyncAndroid",
  1311. base::FEATURE_ENABLED_BY_DEFAULT};
  1312. // Controls whether to apply incoming Wi-Fi configuration delete events from
  1313. // the Chrome Sync server.
  1314. const base::Feature kWifiSyncApplyDeletes{"WifiSyncApplyDeletes",
  1315. base::FEATURE_DISABLED_BY_DEFAULT};
  1316. // Change window creation to be based on cursor position when there are multiple
  1317. // displays.
  1318. const base::Feature kWindowsFollowCursor{"WindowsFollowCursor",
  1319. base::FEATURE_DISABLED_BY_DEFAULT};
  1320. // Enables or disables Fresnel Device Active reporting on ChromeOS.
  1321. const base::Feature kDeviceActiveClient{"DeviceActiveClient",
  1322. base::FEATURE_ENABLED_BY_DEFAULT};
  1323. // Enables or disables PSM CheckMembership for daily device active pings
  1324. // on ChromeOS.
  1325. const base::Feature kDeviceActiveClientDailyCheckMembership{
  1326. "DeviceActiveClientDailyCheckMembership", base::FEATURE_ENABLED_BY_DEFAULT};
  1327. // Enables or disables PSM CheckIn for the monthly device active pings
  1328. // on ChromeOS.
  1329. const base::Feature kDeviceActiveClientMonthlyCheckIn{
  1330. "DeviceActiveClientMonthlyCheckIn", base::FEATURE_ENABLED_BY_DEFAULT};
  1331. // Enables or disables PSM CheckMembership for monthly device active pings
  1332. // on ChromeOS.
  1333. const base::Feature kDeviceActiveClientMonthlyCheckMembership{
  1334. "DeviceActiveClientMonthlyCheckMembership",
  1335. base::FEATURE_DISABLED_BY_DEFAULT};
  1336. // Enables or disables forced reboots when DeviceScheduledReboot policy is set.
  1337. const base::Feature kDeviceForceScheduledReboot{
  1338. "DeviceForceScheduledReboot", base::FEATURE_ENABLED_BY_DEFAULT};
  1339. // Maximum delay added to reboot time when DeviceScheduledReboot policy is set.
  1340. const base::FeatureParam<int> kDeviceForceScheduledRebootMaxDelay{
  1341. &kDeviceForceScheduledReboot, "max-delay-in-seconds", 120};
  1342. // Enables or disables whether to store UMA logs per-user and whether metrics
  1343. // consent is per-user.
  1344. const base::Feature kPerUserMetrics{"PerUserMetricsConsent",
  1345. base::FEATURE_ENABLED_BY_DEFAULT};
  1346. // Allows Files App to find and execute tasks using App Service for Arc and
  1347. // Guest OS apps.
  1348. const base::Feature kArcAndGuestOsFileTasksUseAppService{
  1349. "ArcAndGuestOsFileTasksUseAppService", base::FEATURE_DISABLED_BY_DEFAULT};
  1350. ////////////////////////////////////////////////////////////////////////////////
  1351. bool AreContextualNudgesEnabled() {
  1352. if (!IsHideShelfControlsInTabletModeEnabled())
  1353. return false;
  1354. return base::FeatureList::IsEnabled(kContextualNudges);
  1355. }
  1356. bool AreDesksTemplatesEnabled() {
  1357. return base::FeatureList::IsEnabled(kDesksTemplates);
  1358. }
  1359. bool AreDesksTrackpadSwipeImprovementsEnabled() {
  1360. return base::FeatureList::IsEnabled(kEnableDesksTrackpadSwipeImprovements);
  1361. }
  1362. bool IsAutocompleteExtendedSuggestionsEnabled() {
  1363. return base::FeatureList::IsEnabled(kAutocompleteExtendedSuggestions);
  1364. }
  1365. bool DoWindowsFollowCursor() {
  1366. return base::FeatureList::IsEnabled(kWindowsFollowCursor);
  1367. }
  1368. bool IsAdaptiveChargingEnabled() {
  1369. return base::FeatureList::IsEnabled(kAdaptiveCharging);
  1370. }
  1371. bool IsAdaptiveChargingForTestingEnabled() {
  1372. return base::FeatureList::IsEnabled(kAdaptiveChargingForTesting);
  1373. }
  1374. bool IsAdjustSplitViewForVKEnabled() {
  1375. return base::FeatureList::IsEnabled(kAdjustSplitViewForVK);
  1376. }
  1377. bool IsAllowAmbientEQEnabled() {
  1378. return base::FeatureList::IsEnabled(kAllowAmbientEQ);
  1379. }
  1380. bool IsAmbientModeAnimationEnabled() {
  1381. return base::FeatureList::IsEnabled(kAmbientModeAnimationFeature) &&
  1382. IsPersonalizationHubEnabled();
  1383. }
  1384. bool IsAmbientModeDevUseProdEnabled() {
  1385. return base::FeatureList::IsEnabled(kAmbientModeDevUseProdFeature);
  1386. }
  1387. bool IsAmbientModeEnabled() {
  1388. return base::FeatureList::IsEnabled(kAmbientModeFeature);
  1389. }
  1390. bool IsAmbientModePhotoPreviewEnabled() {
  1391. return base::FeatureList::IsEnabled(kAmbientModePhotoPreviewFeature);
  1392. }
  1393. bool IsAppNotificationsPageEnabled() {
  1394. return base::FeatureList::IsEnabled(kOsSettingsAppNotificationsPage);
  1395. }
  1396. bool IsArcFuseBoxFileSharingEnabled() {
  1397. return IsFileManagerFuseBoxEnabled() &&
  1398. base::FeatureList::IsEnabled(kArcFuseBoxFileSharing);
  1399. }
  1400. bool IsArcInputOverlayEnabled() {
  1401. return base::FeatureList::IsEnabled(kArcInputOverlay);
  1402. }
  1403. bool IsArcInputOverlayBetaEnabled() {
  1404. return base::FeatureList::IsEnabled(kArcInputOverlayBeta);
  1405. }
  1406. bool IsArcNetworkDiagnosticsButtonEnabled() {
  1407. return IsNetworkingInDiagnosticsAppEnabled();
  1408. }
  1409. bool IsAssistantNativeIconsEnabled() {
  1410. return base::FeatureList::IsEnabled(kAssistantNativeIcons);
  1411. }
  1412. bool IsAssistiveMultiWordEnabled() {
  1413. return base::FeatureList::IsEnabled(kAssistMultiWord);
  1414. }
  1415. bool IsAudioSettingsPageEnabled() {
  1416. return base::FeatureList::IsEnabled(kAudioSettingsPage);
  1417. }
  1418. bool IsAutoNightLightEnabled() {
  1419. return base::FeatureList::IsEnabled(kAutoNightLight);
  1420. }
  1421. bool IsBackgroundBlurEnabled() {
  1422. bool enabled_by_feature_flag =
  1423. base::FeatureList::IsEnabled(kEnableBackgroundBlur);
  1424. #if defined(ARCH_CPU_ARM_FAMILY)
  1425. // Enable background blur on Mali when GPU rasterization is enabled.
  1426. // See crbug.com/996858 for the condition.
  1427. return enabled_by_feature_flag &&
  1428. base::CommandLine::ForCurrentProcess()->HasSwitch(
  1429. switches::kAshEnableTabletMode);
  1430. #else
  1431. return enabled_by_feature_flag;
  1432. #endif
  1433. }
  1434. bool IsBentoBarEnabled() {
  1435. return base::FeatureList::IsEnabled(kBentoBar);
  1436. }
  1437. bool IsBluetoothQualityReportEnabled() {
  1438. return base::FeatureList::IsEnabled(kBluetoothQualityReport);
  1439. }
  1440. bool IsBluetoothRevampEnabled() {
  1441. return base::FeatureList::IsEnabled(kBluetoothRevamp);
  1442. }
  1443. bool IsCalendarViewEnabled() {
  1444. return base::FeatureList::IsEnabled(kCalendarView);
  1445. }
  1446. bool IsCalendarModelDebugModeEnabled() {
  1447. return base::FeatureList::IsEnabled(kCalendarModelDebugMode);
  1448. }
  1449. bool IsCheckPasswordsAgainstCryptohomeHelperEnabled() {
  1450. return base::FeatureList::IsEnabled(kCheckPasswordsAgainstCryptohomeHelper);
  1451. }
  1452. bool IsClipboardHistoryContextMenuNudgeEnabled() {
  1453. return base::FeatureList::IsEnabled(kClipboardHistoryContextMenuNudge);
  1454. }
  1455. bool IsClipboardHistoryNudgeSessionResetEnabled() {
  1456. return base::FeatureList::IsEnabled(kClipboardHistoryNudgeSessionReset);
  1457. }
  1458. bool IsClipboardHistoryReorderEnabled() {
  1459. return base::FeatureList::IsEnabled(kClipboardHistoryReorder);
  1460. }
  1461. bool IsDesksCloseAllEnabled() {
  1462. return base::FeatureList::IsEnabled(kDesksCloseAll);
  1463. }
  1464. bool IsLauncherItemColorSyncEnabled() {
  1465. return IsLauncherAppSortEnabled() &&
  1466. base::FeatureList::IsEnabled(kLauncherItemColorSync);
  1467. }
  1468. bool IsConsumerAutoUpdateToggleAllowed() {
  1469. return base::FeatureList::IsEnabled(kConsumerAutoUpdateToggleAllowed);
  1470. }
  1471. bool IsCrosPrivacyHubEnabled() {
  1472. return base::FeatureList::IsEnabled(kCrosPrivacyHub) ||
  1473. IsCrosPrivacyHubFutureEnabled();
  1474. }
  1475. bool IsCrosPrivacyHubFutureEnabled() {
  1476. return base::FeatureList::IsEnabled(kCrosPrivacyHubFuture);
  1477. }
  1478. bool IsCrosNextWMPEnabled() {
  1479. return base::FeatureList::IsEnabled(kCrosNextWMP);
  1480. }
  1481. bool IsCryptohomeRecoveryFlowEnabled() {
  1482. return base::FeatureList::IsEnabled(kCryptohomeRecoveryFlow);
  1483. }
  1484. bool IsCryptohomeRecoveryFlowUIEnabled() {
  1485. return base::FeatureList::IsEnabled(kCryptohomeRecoveryFlowUI);
  1486. }
  1487. bool IsCryptohomeRecoverySetupEnabled() {
  1488. return base::FeatureList::IsEnabled(kCryptohomeRecoverySetup);
  1489. }
  1490. bool IsDarkLightModeEnabled() {
  1491. return chromeos::features::IsDarkLightModeEnabled();
  1492. }
  1493. bool IsDemoModeSWAEnabled() {
  1494. return base::FeatureList::IsEnabled(kDemoModeSWA);
  1495. }
  1496. bool IsDeprecateAssistantStylusFeaturesEnabled() {
  1497. return base::FeatureList::IsEnabled(kDeprecateAssistantStylusFeatures);
  1498. }
  1499. bool IsDeskTemplateSyncEnabled() {
  1500. return base::FeatureList::IsEnabled(kDeskTemplateSync);
  1501. }
  1502. bool IsDisplayAlignmentAssistanceEnabled() {
  1503. return base::FeatureList::IsEnabled(kDisplayAlignAssist);
  1504. }
  1505. bool IsDragUnpinnedAppToPinEnabled() {
  1506. return base::FeatureList::IsEnabled(kDragUnpinnedAppToPin);
  1507. }
  1508. bool IsDragWindowToNewDeskEnabled() {
  1509. return base::FeatureList::IsEnabled(kDragWindowToNewDesk);
  1510. }
  1511. bool IsDriveFsMirroringEnabled() {
  1512. return base::FeatureList::IsEnabled(kDriveFsMirroring);
  1513. }
  1514. bool IsEapGtcWifiAuthenticationEnabled() {
  1515. return base::FeatureList::IsEnabled(kEapGtcWifiAuthentication);
  1516. }
  1517. bool IsEcheSWAEnabled() {
  1518. return base::FeatureList::IsEnabled(kEcheSWA);
  1519. }
  1520. bool IsEcheSWADebugModeEnabled() {
  1521. return base::FeatureList::IsEnabled(kEcheSWADebugMode);
  1522. }
  1523. bool IsExperimentalRgbKeyboardPatternsEnabled() {
  1524. return base::FeatureList::IsEnabled(kExperimentalRgbKeyboardPatterns);
  1525. }
  1526. bool IsExternalKeyboardInDiagnosticsAppEnabled() {
  1527. return base::FeatureList::IsEnabled(kEnableExternalKeyboardsInDiagnostics);
  1528. }
  1529. bool IsFamilyLinkOnSchoolDeviceEnabled() {
  1530. return base::FeatureList::IsEnabled(kFamilyLinkOnSchoolDevice);
  1531. }
  1532. bool IsFastPairEnabled() {
  1533. return base::FeatureList::IsEnabled(kFastPair);
  1534. }
  1535. bool IsFastPairLowPowerEnabled() {
  1536. return base::FeatureList::IsEnabled(kFastPairLowPower);
  1537. }
  1538. bool IsFastPairSoftwareScanningEnabled() {
  1539. return base::FeatureList::IsEnabled(kFastPairSoftwareScanning);
  1540. }
  1541. bool IsFastPairSubsequentPairingUXEnabled() {
  1542. return base::FeatureList::IsEnabled(kFastPairSubsequentPairingUX);
  1543. }
  1544. bool IsFastPairSavedDevicesEnabled() {
  1545. return base::FeatureList::IsEnabled(kFastPairSavedDevices);
  1546. }
  1547. bool IsFastPairSavedDevicesStrictOptInEnabled() {
  1548. return base::FeatureList::IsEnabled(kFastPairSavedDevicesStrictOptIn);
  1549. }
  1550. bool IsFileManagerFuseBoxEnabled() {
  1551. return base::FeatureList::IsEnabled(kFuseBox);
  1552. }
  1553. bool IsFileManagerFuseBoxDebugEnabled() {
  1554. return base::FeatureList::IsEnabled(kFuseBoxDebug);
  1555. }
  1556. bool IsFileManagerSwaEnabled() {
  1557. return base::FeatureList::IsEnabled(kFilesSWA);
  1558. }
  1559. bool IsFilesWebDriveOfficeEnabled() {
  1560. return base::FeatureList::IsEnabled(kFilesWebDriveOffice);
  1561. }
  1562. bool IsFirmwareUpdaterAppEnabled() {
  1563. return base::FeatureList::IsEnabled(kFirmwareUpdaterApp);
  1564. }
  1565. bool IsFloatingWorkspaceEnabled() {
  1566. return base::FeatureList::IsEnabled(kFloatingWorkspace);
  1567. }
  1568. bool IsFullscreenAfterUnlockAllowed() {
  1569. return base::FeatureList::IsEnabled(kFullscreenAfterUnlockAllowed);
  1570. }
  1571. bool IsFullscreenAlertBubbleEnabled() {
  1572. return base::FeatureList::IsEnabled(kFullscreenAlertBubble);
  1573. }
  1574. bool IsGaiaReauthEndpointEnabled() {
  1575. return base::FeatureList::IsEnabled(kGaiaReauthEndpoint);
  1576. }
  1577. bool AreGlanceablesEnabled() {
  1578. return base::FeatureList::IsEnabled(kGlanceables);
  1579. }
  1580. bool IsGuestOsFilesEnabled() {
  1581. return base::FeatureList::IsEnabled(kGuestOsFiles);
  1582. }
  1583. bool IsHibernateEnabled() {
  1584. return base::FeatureList::IsEnabled(kHibernate);
  1585. }
  1586. bool IsHideArcMediaNotificationsEnabled() {
  1587. return base::FeatureList::IsEnabled(kHideArcMediaNotifications);
  1588. }
  1589. bool IsHideShelfControlsInTabletModeEnabled() {
  1590. return base::FeatureList::IsEnabled(kHideShelfControlsInTabletMode);
  1591. }
  1592. bool IsHoldingSpaceInProgressDownloadsNotificationSuppressionEnabled() {
  1593. return base::FeatureList::IsEnabled(
  1594. kHoldingSpaceInProgressDownloadsNotificationSuppression);
  1595. }
  1596. bool IsHoldingSpaceRebrandEnabled() {
  1597. return base::FeatureList::IsEnabled(kHoldingSpaceRebrand);
  1598. }
  1599. bool IsHoldingSpaceSuggestionsEnabled() {
  1600. return base::FeatureList::IsEnabled(kHoldingSpaceSuggestions);
  1601. }
  1602. bool IsHostnameSettingEnabled() {
  1603. return base::FeatureList::IsEnabled(kEnableHostnameSetting);
  1604. }
  1605. bool IsHotspotEnabled() {
  1606. return base::FeatureList::IsEnabled(kHotspot);
  1607. }
  1608. bool IsSnoopingProtectionEnabled() {
  1609. return base::FeatureList::IsEnabled(kSnoopingProtection) &&
  1610. ash::switches::HasHps();
  1611. }
  1612. bool IsStartAssistantAudioDecoderOnDemandEnabled() {
  1613. return base::FeatureList::IsEnabled(kStartAssistantAudioDecoderOnDemand);
  1614. }
  1615. bool IsImprovedDesksKeyboardShortcutsEnabled() {
  1616. return base::FeatureList::IsEnabled(kImprovedDesksKeyboardShortcuts);
  1617. }
  1618. bool IsInputInDiagnosticsAppEnabled() {
  1619. return base::FeatureList::IsEnabled(kEnableInputInDiagnosticsApp);
  1620. }
  1621. bool IsInstantTetheringBackgroundAdvertisingSupported() {
  1622. return base::FeatureList::IsEnabled(
  1623. kInstantTetheringBackgroundAdvertisementSupport);
  1624. }
  1625. bool IsJellyEnabled() {
  1626. return base::FeatureList::IsEnabled(kJelly);
  1627. }
  1628. bool IsJellyrollEnabled() {
  1629. return base::FeatureList::IsEnabled(kJellyroll);
  1630. }
  1631. bool IsKeyboardBacklightToggleEnabled() {
  1632. return base::FeatureList::IsEnabled(kEnableKeyboardBacklightToggle);
  1633. }
  1634. bool IsLanguagePacksEnabled() {
  1635. return base::FeatureList::IsEnabled(kHandwritingLegacyRecognition) ||
  1636. base::FeatureList::IsEnabled(kHandwritingLegacyRecognitionAllLang);
  1637. }
  1638. bool IsLauncherAppSortEnabled() {
  1639. return IsProductivityLauncherEnabled() &&
  1640. base::FeatureList::IsEnabled(kLauncherAppSort);
  1641. }
  1642. bool IsLauncherFolderRenameKeepsSortOrderEnabled() {
  1643. return IsLauncherAppSortEnabled() &&
  1644. base::FeatureList::IsEnabled(kLauncherFolderRenameKeepsSortOrder);
  1645. }
  1646. bool IsLauncherDismissButtonsOnSortNudgeAndToastEnabled() {
  1647. return IsLauncherAppSortEnabled() &&
  1648. base::FeatureList::IsEnabled(
  1649. kLauncherDismissButtonsOnSortNudgeAndToast);
  1650. }
  1651. bool IsLauncherHideContinueSectionEnabled() {
  1652. return IsProductivityLauncherEnabled() &&
  1653. base::FeatureList::IsEnabled(kLauncherHideContinueSection);
  1654. }
  1655. bool IsLauncherNudgeShortIntervalEnabled() {
  1656. return IsProductivityLauncherEnabled() &&
  1657. base::FeatureList::IsEnabled(kLauncherNudgeShortInterval);
  1658. }
  1659. bool IsLauncherNudgeSessionResetEnabled() {
  1660. return IsProductivityLauncherEnabled() &&
  1661. base::FeatureList::IsEnabled(kLauncherNudgeSessionReset);
  1662. }
  1663. bool IsLicensePackagedOobeFlowEnabled() {
  1664. return base::FeatureList::IsEnabled(kLicensePackagedOobeFlow);
  1665. }
  1666. bool IsLockScreenHideSensitiveNotificationsSupported() {
  1667. return base::FeatureList::IsEnabled(
  1668. kLockScreenHideSensitiveNotificationsSupport);
  1669. }
  1670. bool IsLogControllerForDiagnosticsAppEnabled() {
  1671. return base::FeatureList::IsEnabled(kEnableLogControllerForDiagnosticsApp);
  1672. }
  1673. bool IsLockScreenInlineReplyEnabled() {
  1674. return base::FeatureList::IsEnabled(kLockScreenInlineReply);
  1675. }
  1676. bool IsLockScreenNotificationsEnabled() {
  1677. return base::FeatureList::IsEnabled(kLockScreenNotifications);
  1678. }
  1679. bool IsProductivityLauncherImageSearchEnabled() {
  1680. return base::FeatureList::IsEnabled(kProductivityLauncher) &&
  1681. base::FeatureList::IsEnabled(kProductivityLauncherImageSearch);
  1682. }
  1683. bool IsMacAddressRandomizationEnabled() {
  1684. return base::FeatureList::IsEnabled(kMacAddressRandomization);
  1685. }
  1686. bool IsManagedDeviceUIRedesignEnabled() {
  1687. return base::FeatureList::IsEnabled(kManagedDeviceUIRedesign);
  1688. }
  1689. bool IsManagedTermsOfServiceEnabled() {
  1690. return base::FeatureList::IsEnabled(kManagedTermsOfService);
  1691. }
  1692. bool IsMicMuteNotificationsEnabled() {
  1693. return base::FeatureList::IsEnabled(kMicMuteNotifications);
  1694. }
  1695. bool IsMinimumChromeVersionEnabled() {
  1696. return base::FeatureList::IsEnabled(kMinimumChromeVersion);
  1697. }
  1698. bool IsNearbyKeepAliveFixEnabled() {
  1699. return base::FeatureList::IsEnabled(kNearbyKeepAliveFix);
  1700. }
  1701. bool IsNetworkingInDiagnosticsAppEnabled() {
  1702. return base::FeatureList::IsEnabled(kEnableNetworkingInDiagnosticsApp);
  1703. }
  1704. bool IsOAuthIppEnabled() {
  1705. return base::FeatureList::IsEnabled(kEnableOAuthIpp);
  1706. }
  1707. bool IsNewLockScreenReauthLayoutEnabled() {
  1708. return base::FeatureList::IsEnabled(kNewLockScreenReauthLayout);
  1709. }
  1710. bool IsNotificationExpansionAnimationEnabled() {
  1711. return base::FeatureList::IsEnabled(kNotificationExpansionAnimation);
  1712. }
  1713. bool IsNotificationExperimentalShortTimeoutsEnabled() {
  1714. return base::FeatureList::IsEnabled(kNotificationExperimentalShortTimeouts);
  1715. }
  1716. bool IsNotificationScrollBarEnabled() {
  1717. return base::FeatureList::IsEnabled(kNotificationScrollBar);
  1718. }
  1719. bool IsNotificationsInContextMenuEnabled() {
  1720. return base::FeatureList::IsEnabled(kNotificationsInContextMenu);
  1721. }
  1722. bool IsNotificationsRefreshEnabled() {
  1723. return base::FeatureList::IsEnabled(kNotificationsRefresh);
  1724. }
  1725. bool IsOobeChromeVoxHintEnabled() {
  1726. return base::FeatureList::IsEnabled(kEnableOobeChromeVoxHint);
  1727. }
  1728. bool IsOobeHidDetectionRevampEnabled() {
  1729. return base::FeatureList::IsEnabled(kOobeHidDetectionRevamp) &&
  1730. base::FeatureList::IsEnabled(kBluetoothRevamp);
  1731. }
  1732. bool IsKioskEnrollmentInOobeEnabled() {
  1733. return base::FeatureList::IsEnabled(kEnableKioskEnrollmentInOobe);
  1734. }
  1735. bool IsKioskLoginScreenEnabled() {
  1736. return base::FeatureList::IsEnabled(kEnableKioskLoginScreen);
  1737. }
  1738. bool IsOobeNetworkScreenSkipEnabled() {
  1739. return base::FeatureList::IsEnabled(kEnableOobeNetworkScreenSkip);
  1740. }
  1741. bool IsOobeConsolidatedConsentEnabled() {
  1742. return base::FeatureList::IsEnabled(kOobeConsolidatedConsent);
  1743. }
  1744. bool IsOobeQuickStartEnabled() {
  1745. return base::FeatureList::IsEnabled(kOobeQuickStart);
  1746. }
  1747. bool IsOobeNewRecommendAppsEnabled() {
  1748. return base::FeatureList::IsEnabled(kOobeNewRecommendApps);
  1749. }
  1750. bool IsOobeRemoveShutdownButtonEnabled() {
  1751. return base::FeatureList::IsEnabled(kOobeRemoveShutdownButton);
  1752. }
  1753. bool IsOobeThemeSelectionEnabled() {
  1754. return base::FeatureList::IsEnabled(kEnableOobeThemeSelection);
  1755. }
  1756. bool IsPartialSplitEnabled() {
  1757. return base::FeatureList::IsEnabled(kPartialSplit);
  1758. }
  1759. bool IsPcieBillboardNotificationEnabled() {
  1760. return base::FeatureList::IsEnabled(kPcieBillboardNotification);
  1761. }
  1762. bool IsPerDeskShelfEnabled() {
  1763. return base::FeatureList::IsEnabled(kPerDeskShelf);
  1764. }
  1765. bool IsPhoneHubCameraRollEnabled() {
  1766. return base::FeatureList::IsEnabled(kPhoneHubCameraRoll);
  1767. }
  1768. bool IsPhoneHubMonochromeNotificationIconsEnabled() {
  1769. return base::FeatureList::IsEnabled(kPhoneHubMonochromeNotificationIcons);
  1770. }
  1771. bool IsPhoneHubFeatureSetupErrorHandlingEnabled() {
  1772. return base::FeatureList::IsEnabled(kPhoneHubFeatureSetupErrorHandling);
  1773. }
  1774. bool IsPerformantSplitViewResizingEnabled() {
  1775. return base::FeatureList::IsEnabled(kPerformantSplitViewResizing);
  1776. }
  1777. bool IsPersonalizationHubEnabled() {
  1778. return base::FeatureList::IsEnabled(kPersonalizationHub);
  1779. }
  1780. bool IsPhoneHubEnabled() {
  1781. return base::FeatureList::IsEnabled(kPhoneHub);
  1782. }
  1783. bool IsPhoneHubCallNotificationEnabled() {
  1784. return base::FeatureList::IsEnabled(kPhoneHubCallNotification);
  1785. }
  1786. bool IsPinAutosubmitBackfillFeatureEnabled() {
  1787. return base::FeatureList::IsEnabled(kQuickUnlockPinAutosubmitBackfill);
  1788. }
  1789. bool IsPinAutosubmitFeatureEnabled() {
  1790. return base::FeatureList::IsEnabled(kQuickUnlockPinAutosubmit);
  1791. }
  1792. bool IsPipRoundedCornersEnabled() {
  1793. return base::FeatureList::IsEnabled(kPipRoundedCorners);
  1794. }
  1795. bool IsPolyDevicePairingAllowed() {
  1796. return base::FeatureList::IsEnabled(kAllowPolyDevicePairing);
  1797. }
  1798. bool IsPrivacyIndicatorsEnabled() {
  1799. return base::FeatureList::IsEnabled(kPrivacyIndicators);
  1800. }
  1801. bool IsProductivityLauncherEnabled() {
  1802. return base::FeatureList::IsEnabled(kProductivityLauncher);
  1803. }
  1804. bool IsProjectorEnabled() {
  1805. return IsProjectorAllUserEnabled() || IsProjectorManagedUserEnabled();
  1806. }
  1807. bool IsProjectorAllUserEnabled() {
  1808. return base::FeatureList::IsEnabled(kProjector);
  1809. }
  1810. bool IsProjectorManagedUserEnabled() {
  1811. return base::FeatureList::IsEnabled(kProjectorManagedUser);
  1812. }
  1813. bool IsProjectorAnnotatorEnabled() {
  1814. return IsProjectorEnabled() &&
  1815. base::FeatureList::IsEnabled(kProjectorAnnotator);
  1816. }
  1817. bool IsProjectorAppDebugMode() {
  1818. return base::FeatureList::IsEnabled(kProjectorAppDebug);
  1819. }
  1820. bool IsProjectorExcludeTranscriptEnabled() {
  1821. return base::FeatureList::IsEnabled(kProjectorExcludeTranscript);
  1822. }
  1823. bool IsProjectorTutorialVideoViewEnabled() {
  1824. return base::FeatureList::IsEnabled(kProjectorTutorialVideoView);
  1825. }
  1826. bool IsProjectorCustomThumbnailEnabled() {
  1827. return base::FeatureList::IsEnabled(kProjectorCustomThumbnail);
  1828. }
  1829. bool IsProjectorManagedUserIgnorePolicyEnabled() {
  1830. return base::FeatureList::IsEnabled(kProjectorManagedUserIgnorePolicy);
  1831. }
  1832. bool IsProjectorShowShortPseudoTranscript() {
  1833. return base::FeatureList::IsEnabled(kProjectorShowShortPseudoTranscript);
  1834. }
  1835. bool IsProjectorUpdateIndexableTextEnabled() {
  1836. return base::FeatureList::IsEnabled(kProjectorUpdateIndexableText);
  1837. }
  1838. bool IsProjectorUseOAuthForGetVideoInfoEnabled() {
  1839. return base::FeatureList::IsEnabled(kProjectorUseOAuthForGetVideoInfo);
  1840. }
  1841. bool IsProjectorLocalPlaybackEnabled() {
  1842. return base::FeatureList::IsEnabled(kProjectorLocalPlayback);
  1843. }
  1844. bool IsQsRevampEnabled() {
  1845. return base::FeatureList::IsEnabled(kQsRevamp);
  1846. }
  1847. bool IsQuickDimEnabled() {
  1848. return base::FeatureList::IsEnabled(kQuickDim) && ash::switches::HasHps();
  1849. }
  1850. bool IsQuickSettingsNetworkRevampEnabled() {
  1851. return base::FeatureList::IsEnabled(kQuickSettingsNetworkRevamp);
  1852. }
  1853. bool IsRedirectToDefaultIdPEnabled() {
  1854. return base::FeatureList::IsEnabled(kRedirectToDefaultIdP);
  1855. }
  1856. bool IsReleaseTrackUiEnabled() {
  1857. return base::FeatureList::IsEnabled(kReleaseTrackUi);
  1858. }
  1859. bool IsReverseScrollGesturesEnabled() {
  1860. return base::FeatureList::IsEnabled(kReverseScrollGestures);
  1861. }
  1862. bool IsRgbKeyboardEnabled() {
  1863. return base::FeatureList::IsEnabled(kRgbKeyboard);
  1864. }
  1865. bool IsSamlNotificationOnPasswordChangeSuccessEnabled() {
  1866. return base::FeatureList::IsEnabled(
  1867. kEnableSamlNotificationOnPasswordChangeSuccess);
  1868. }
  1869. bool IsSamlReauthenticationOnLockscreenEnabled() {
  1870. return base::FeatureList::IsEnabled(kEnableSamlReauthenticationOnLockscreen);
  1871. }
  1872. bool IsSavedDesksEnabled() {
  1873. return base::FeatureList::IsEnabled(kEnableSavedDesks);
  1874. }
  1875. bool IsScalableStatusAreaEnabled() {
  1876. return base::FeatureList::IsEnabled(kScalableStatusArea);
  1877. }
  1878. bool IsSeparateNetworkIconsEnabled() {
  1879. return base::FeatureList::IsEnabled(kSeparateNetworkIcons);
  1880. }
  1881. bool IsSettingsAppNotificationSettingsEnabled() {
  1882. return base::FeatureList::IsEnabled(kSettingsAppNotificationSettings);
  1883. }
  1884. bool IsSettingsAppThemeChangeAnimationEnabled() {
  1885. return IsDarkLightModeEnabled() &&
  1886. base::FeatureList::IsEnabled(kSettingsAppThemeChangeAnimation);
  1887. }
  1888. bool IsShelfLauncherNudgeEnabled() {
  1889. return IsProductivityLauncherEnabled() &&
  1890. base::FeatureList::IsEnabled(kShelfLauncherNudge);
  1891. }
  1892. bool IsShelfPalmRejectionSwipeOffsetEnabled() {
  1893. return base::FeatureList::IsEnabled(kShelfPalmRejectionSwipeOffset);
  1894. }
  1895. bool IsShimlessRMAFlowEnabled() {
  1896. return base::FeatureList::IsEnabled(kShimlessRMAFlow);
  1897. }
  1898. bool IsShimlessRMAStandaloneAppEnabled() {
  1899. return base::FeatureList::IsEnabled(kShimlessRMAEnableStandalone) &&
  1900. IsShimlessRMAFlowEnabled();
  1901. }
  1902. bool IsShimlessRMAOsUpdateEnabled() {
  1903. return base::FeatureList::IsEnabled(kShimlessRMAOsUpdate);
  1904. }
  1905. bool IsShimlessRMADarkModeDisabled() {
  1906. return base::FeatureList::IsEnabled(kShimlessRMADisableDarkMode);
  1907. }
  1908. bool IsSimLockPolicyEnabled() {
  1909. return base::FeatureList::IsEnabled(kSimLockPolicy);
  1910. }
  1911. bool IsSyncSettingsCategorizationEnabled() {
  1912. return base::FeatureList::IsEnabled(kSyncSettingsCategorization);
  1913. }
  1914. bool IsSystemTrayShadowEnabled() {
  1915. return base::FeatureList::IsEnabled(kSystemTrayShadow);
  1916. }
  1917. bool IsStylusBatteryStatusEnabled() {
  1918. return base::FeatureList::IsEnabled(kStylusBatteryStatus);
  1919. }
  1920. bool IsTabClusterUIEnabled() {
  1921. return base::FeatureList::IsEnabled(kTabClusterUI);
  1922. }
  1923. bool IsTouchpadInDiagnosticsAppEnabled() {
  1924. return base::FeatureList::IsEnabled(kEnableTouchpadsInDiagnosticsApp);
  1925. }
  1926. bool IsTouchscreenInDiagnosticsAppEnabled() {
  1927. return base::FeatureList::IsEnabled(kEnableTouchscreensInDiagnosticsApp);
  1928. }
  1929. bool IsTrafficCountersEnabled() {
  1930. return base::FeatureList::IsEnabled(kTrafficCountersEnabled);
  1931. }
  1932. bool IsTrilinearFilteringEnabled() {
  1933. static bool use_trilinear_filtering =
  1934. base::FeatureList::IsEnabled(kTrilinearFiltering);
  1935. return use_trilinear_filtering;
  1936. }
  1937. bool IsUploadOfficeToCloudEnabled() {
  1938. return base::FeatureList::IsEnabled(kUploadOfficeToCloud);
  1939. }
  1940. bool IsUseAuthFactorsEnabled() {
  1941. return base::FeatureList::IsEnabled(kUseAuthFactors);
  1942. }
  1943. bool IsUseLoginShelfWidgetEnabled() {
  1944. return base::FeatureList::IsEnabled(kUseLoginShelfWidget);
  1945. }
  1946. bool IsUseStorkSmdsServerAddressEnabled() {
  1947. return base::FeatureList::IsEnabled(kUseStorkSmdsServerAddress);
  1948. }
  1949. bool IsWallpaperFastRefreshEnabled() {
  1950. return base::FeatureList::IsEnabled(kWallpaperFastRefresh);
  1951. }
  1952. bool IsWallpaperFullScreenPreviewEnabled() {
  1953. return base::FeatureList::IsEnabled(kWallpaperFullScreenPreview);
  1954. }
  1955. bool IsWallpaperGooglePhotosIntegrationEnabled() {
  1956. return base::FeatureList::IsEnabled(kWallpaperGooglePhotosIntegration);
  1957. }
  1958. bool IsWallpaperPerDeskEnabled() {
  1959. return base::FeatureList::IsEnabled(kWallpaperPerDesk);
  1960. }
  1961. bool IsWebUITabStripTabDragIntegrationEnabled() {
  1962. return base::FeatureList::IsEnabled(kWebUITabStripTabDragIntegration);
  1963. }
  1964. bool IsWifiSyncAndroidEnabled() {
  1965. return base::FeatureList::IsEnabled(kWifiSyncAndroid);
  1966. }
  1967. bool ShouldArcAndGuestOsFileTasksUseAppService() {
  1968. return base::FeatureList::IsEnabled(kArcAndGuestOsFileTasksUseAppService);
  1969. }
  1970. bool ShouldShowPlayStoreInDemoMode() {
  1971. return base::FeatureList::IsEnabled(kShowPlayInDemoMode);
  1972. }
  1973. bool ShouldUseAttachApn() {
  1974. // See comment on |kCellularForbidAttachApn| for details.
  1975. return !base::FeatureList::IsEnabled(kCellularForbidAttachApn) &&
  1976. base::FeatureList::IsEnabled(kCellularUseAttachApn);
  1977. }
  1978. bool ShouldUseV1DeviceSync() {
  1979. return !ShouldUseV2DeviceSync() ||
  1980. !base::FeatureList::IsEnabled(kDisableCryptAuthV1DeviceSync);
  1981. }
  1982. bool ShouldUseV2DeviceSync() {
  1983. return base::FeatureList::IsEnabled(kCryptAuthV2Enrollment) &&
  1984. base::FeatureList::IsEnabled(kCryptAuthV2DeviceSync);
  1985. }
  1986. namespace {
  1987. // The boolean flag indicating if "WebUITabStrip" feature is enabled in Chrome.
  1988. bool g_webui_tab_strip_enabled = false;
  1989. } // namespace
  1990. void SetWebUITabStripEnabled(bool enabled) {
  1991. g_webui_tab_strip_enabled = enabled;
  1992. }
  1993. bool IsWebUITabStripEnabled() {
  1994. return g_webui_tab_strip_enabled;
  1995. }
  1996. } // namespace features
  1997. } // namespace ash