blob: 4f9113108317088fc7992114049960561f6d059d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- chrome/browser/web_applications/os_integration/web_app_shortcut.h.orig 2022-09-24 10:57:32 UTC
+++ chrome/browser/web_applications/os_integration/web_app_shortcut.h
@@ -19,7 +19,7 @@
#include "ui/gfx/image/image_family.h"
#include "url/gurl.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "chrome/browser/web_applications/os_integration/web_app_shortcut_linux.h"
#endif // BUILDFLAG(IS_LINUX)
@@ -33,7 +33,7 @@ class ImageSkia;
namespace web_app {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
struct LinuxFileRegistration {
std::string xdg_command;
std::string file_contents;
@@ -61,7 +61,7 @@ struct ScopedShortcutOverrideForTesting {
#elif BUILDFLAG(IS_MAC)
base::ScopedTempDir chrome_apps_folder;
std::map<base::FilePath, bool> startup_enabled;
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
base::ScopedTempDir desktop;
base::ScopedTempDir startup;
std::vector<LinuxFileRegistration> linux_file_registration;
@@ -107,7 +107,7 @@ struct ShortcutInfo {
std::set<std::string> file_handler_extensions;
std::set<std::string> file_handler_mime_types;
std::set<std::string> protocol_handlers;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
std::set<DesktopActionInfo> actions;
#endif // BUILDFLAG(IS_LINUX)
|