--- chrome/browser/web_applications/os_integration/web_app_shortcut_manager.cc.orig 2022-03-25 21:59:56 UTC +++ chrome/browser/web_applications/os_integration/web_app_shortcut_manager.cc @@ -35,7 +35,7 @@ namespace web_app { namespace { -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) // Aligns with other platform implementations that only support 10 items. constexpr int kMaxApplicationDockMenuItems = 10; #endif // BUILDFLAG(IS_LINUX) @@ -382,7 +382,7 @@ std::unique_ptr WebAppShortcutManager::B } } -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) const std::vector& shortcuts_menu_item_infos = app->shortcuts_menu_item_infos(); int num_entries = std::min(static_cast(shortcuts_menu_item_infos.size()),