blob: 5ecbbf680c84558483ab8e68d34abe34ab078821 (
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/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<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()),
|