$OpenBSD: patch-ui_base_ui_base_features_cc,v 1.18 2021/04/16 18:15:07 robert Exp $

Index: ui/base/ui_base_features.cc
--- ui/base/ui_base_features.cc.orig
+++ ui/base/ui_base_features.cc
@@ -128,7 +128,7 @@ const base::Feature kExperimentalFlingAnimation {
 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
 // of lacros-chrome is complete.
 #if defined(OS_WIN) || (defined(OS_LINUX) && !BUILDFLAG(IS_CHROMEOS_ASH) && \
-                        !BUILDFLAG(IS_CHROMEOS_LACROS))
+                        !BUILDFLAG(IS_CHROMEOS_LACROS)) || defined(OS_BSD)
       base::FEATURE_ENABLED_BY_DEFAULT
 #else
       base::FEATURE_DISABLED_BY_DEFAULT
@@ -161,7 +161,7 @@ const base::Feature kPrecisionTouchpadLogging{
 #endif  // defined(OS_WIN)
 
 #if defined(OS_WIN) || defined(OS_APPLE) || defined(OS_LINUX) || \
-    defined(OS_CHROMEOS)
+    defined(OS_CHROMEOS) || defined(OS_BSD)
 // Enables stylus appearing as touch when in contact with digitizer.
 const base::Feature kDirectManipulationStylus = {
     "DirectManipulationStylus",
@@ -206,7 +206,7 @@ bool IsEyeDropperEnabled() {
 const base::Feature kCSSColorSchemeUARendering = {
     "CSSColorSchemeUARendering",
 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_LINUX) || \
-    defined(OS_APPLE)
+    defined(OS_APPLE) || defined(OS_BSD)
                                             base::FEATURE_ENABLED_BY_DEFAULT
 #else
     base::FEATURE_DISABLED_BY_DEFAULT
@@ -225,7 +225,7 @@ bool IsCSSColorSchemeUARenderingEnabled() {
 // Mac launch bug.
 const base::Feature kFormControlsRefresh = {"FormControlsRefresh",
 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_LINUX) || \
-    defined(OS_APPLE)
+    defined(OS_APPLE) || defined(OS_BSD)
                                             base::FEATURE_ENABLED_BY_DEFAULT
 #else
                                             base::FEATURE_DISABLED_BY_DEFAULT
