summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/patch-chrome_browser_download_download_prefs_h
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-06-06 21:27:26 -0400
committerShokara Kou <kou@13f0.net>2022-06-06 21:27:26 -0400
commitddb6da8b8aa31f3162c3d925f7412fe58a980acd (patch)
tree8dfee090e83fc32c97a508cdba40384865e0ca7c /www/chromium-uc/patches/patch-chrome_browser_download_download_prefs_h
parente4fc568ec5f38ccaa75b0c148ef0395cc62db04d (diff)
add leo larnack's ungoogled-flavoured chromium port
Unlike my previous failed attempt at doing the same, this should actually work. Source: https://marc.info/?l=openbsd-ports&m=164135083101196&w=2 https://pseven.xyz/pub/chromium-uc.tar.gz
Diffstat (limited to 'www/chromium-uc/patches/patch-chrome_browser_download_download_prefs_h')
-rw-r--r--www/chromium-uc/patches/patch-chrome_browser_download_download_prefs_h23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/patch-chrome_browser_download_download_prefs_h b/www/chromium-uc/patches/patch-chrome_browser_download_download_prefs_h
new file mode 100644
index 0000000..def9ae2
--- /dev/null
+++ b/www/chromium-uc/patches/patch-chrome_browser_download_download_prefs_h
@@ -0,0 +1,23 @@
1$OpenBSD: patch-chrome_browser_download_download_prefs_h,v 1.18 2021/11/16 11:28:46 robert Exp $
2
3Index: chrome/browser/download/download_prefs.h
4--- chrome/browser/download/download_prefs.h.orig
5+++ chrome/browser/download/download_prefs.h
6@@ -122,7 +122,7 @@ class DownloadPrefs {
7 void DisableAutoOpenByUserBasedOnExtension(const base::FilePath& file_name);
8
9 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
10- defined(OS_MAC)
11+ defined(OS_MAC) || defined(OS_BSD)
12 // Store the user preference to disk. If |should_open| is true, also disable
13 // the built-in PDF plugin. If |should_open| is false, enable the PDF plugin.
14 void SetShouldOpenPdfInSystemReader(bool should_open);
15@@ -181,7 +181,7 @@ class DownloadPrefs {
16 std::unique_ptr<policy::URLBlocklist> auto_open_allowed_by_urls_;
17
18 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
19- defined(OS_MAC)
20+ defined(OS_MAC) || defined(OS_BSD)
21 bool should_open_pdf_in_system_reader_;
22 #endif
23