summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_web__applications_web__app__shortcut__manager.cc
blob: edf893e6ed24462781467e209cb0f30049cef435 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- chrome/browser/web_applications/web_app_shortcut_manager.cc.orig	2022-02-28 16:54:41 UTC
+++ chrome/browser/web_applications/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<ShortcutInfo> WebAppShortcutManager::B
     }
   }
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   const std::vector<WebAppShortcutsMenuItemInfo>& shortcuts_menu_item_infos =
       app->shortcuts_menu_item_infos();
   int num_entries = std::min(static_cast<int>(shortcuts_menu_item_infos.size()),