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

Index: content/shell/browser/shell_browser_main_parts.cc
--- content/shell/browser/shell_browser_main_parts.cc.orig
+++ content/shell/browser/shell_browser_main_parts.cc
@@ -56,7 +56,7 @@
 #if defined(USE_AURA) && defined(USE_X11)
 #include "ui/events/devices/x11/touch_factory_x11.h"  // nogncheck
 #endif
-#if defined(USE_AURA) && (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
+#if defined(USE_AURA) && (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD))
 #include "ui/base/ime/init/input_method_initializer.h"
 #endif
 #if BUILDFLAG(IS_CHROMEOS_ASH)
@@ -142,7 +142,7 @@ void ShellBrowserMainParts::PostMainMessageLoopStart()
 }
 
 int ShellBrowserMainParts::PreEarlyInitialization() {
-#if defined(USE_AURA) && (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
+#if defined(USE_AURA) && (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD))
   ui::InitializeInputMethodForTesting();
 #endif
 #if defined(OS_ANDROID)
