summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_web__applications_os__integration_web__app__shortcut.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-chrome_browser_web__applications_os__integration_web__app__shortcut.cc')
-rw-r--r--www/chromium/files/patch-chrome_browser_web__applications_os__integration_web__app__shortcut.cc38
1 files changed, 38 insertions, 0 deletions
diff --git a/www/chromium/files/patch-chrome_browser_web__applications_os__integration_web__app__shortcut.cc b/www/chromium/files/patch-chrome_browser_web__applications_os__integration_web__app__shortcut.cc
new file mode 100644
index 000000000000..b883934bf2f7
--- /dev/null
+++ b/www/chromium/files/patch-chrome_browser_web__applications_os__integration_web__app__shortcut.cc
@@ -0,0 +1,38 @@
+--- chrome/browser/web_applications/os_integration/web_app_shortcut.cc.orig 2022-03-25 21:59:56 UTC
++++ chrome/browser/web_applications/os_integration/web_app_shortcut.cc
+@@ -43,7 +43,7 @@ namespace {
+
+ #if BUILDFLAG(IS_MAC)
+ const int kDesiredIconSizesForShortcut[] = {16, 32, 128, 256, 512};
+-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // Linux supports icons of any size. FreeDesktop Icon Theme Specification states
+ // that "Minimally you should install a 48x48 icon in the hicolor theme."
+ const int kDesiredIconSizesForShortcut[] = {16, 32, 48, 128, 256, 512};
+@@ -133,7 +133,7 @@ ScopedShortcutOverrideForTesting::~ScopedShortcutOverr
+ }
+ }
+ }
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ directories = {&desktop};
+ #endif
+ for (base::ScopedTempDir* dir : directories) {
+@@ -177,7 +177,7 @@ std::unique_ptr<ScopedShortcutOverrideForTesting> Over
+ scoped_override->chrome_apps_folder.CreateUniqueTempDirUnderPath(
+ base_path);
+ DCHECK(success);
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ bool success =
+ scoped_override->desktop.CreateUniqueTempDirUnderPath(base_path);
+ DCHECK(success);
+@@ -195,7 +195,7 @@ std::unique_ptr<ScopedShortcutOverrideForTesting> Over
+ #elif BUILDFLAG(IS_MAC)
+ bool success = scoped_override->chrome_apps_folder.CreateUniqueTempDir();
+ DCHECK(success);
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ bool success = scoped_override->desktop.CreateUniqueTempDir();
+ DCHECK(success);
+ #endif