aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-chrome_browser_download_download__file__picker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-chrome_browser_download_download__file__picker.cc')
-rw-r--r--devel/electron37/files/patch-chrome_browser_download_download__file__picker.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-chrome_browser_download_download__file__picker.cc b/devel/electron37/files/patch-chrome_browser_download_download__file__picker.cc
new file mode 100644
index 000000000000..972c0f70a0e3
--- /dev/null
+++ b/devel/electron37/files/patch-chrome_browser_download_download__file__picker.cc
@@ -0,0 +1,20 @@
+--- chrome/browser/download/download_file_picker.cc.orig 2025-04-22 20:15:27 UTC
++++ chrome/browser/download/download_file_picker.cc
+@@ -18,7 +18,7 @@
+ #include "content/public/browser/web_contents.h"
+ #include "ui/shell_dialogs/selected_file_info.h"
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
+ #include "chrome/browser/ui/browser_list.h"
+ #include "chrome/browser/ui/browser_window.h"
+ #include "ui/aura/window.h"
+@@ -83,7 +83,7 @@ DownloadFilePicker::DownloadFilePicker(download::Downl
+ // dialog in Linux (See SelectFileImpl() in select_file_dialog_linux_gtk.cc).
+ // and windows.Here we make owning_window host to browser current active
+ // window if it is null. https://crbug.com/1301898
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
+ if (!owning_window || !owning_window->GetHost()) {
+ owning_window = BrowserList::GetInstance()
+ ->GetLastActive()