diff options
Diffstat (limited to 'www/ungoogled-chromium/files/patch-chrome_browser_download_download__prefs.cc')
| -rw-r--r-- | www/ungoogled-chromium/files/patch-chrome_browser_download_download__prefs.cc | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_download_download__prefs.cc b/www/ungoogled-chromium/files/patch-chrome_browser_download_download__prefs.cc index 26c9fb9aa129..7d78c1590bc9 100644 --- a/www/ungoogled-chromium/files/patch-chrome_browser_download_download__prefs.cc +++ b/www/ungoogled-chromium/files/patch-chrome_browser_download_download__prefs.cc @@ -1,4 +1,4 @@ ---- chrome/browser/download/download_prefs.cc.orig	2025-04-15 08:30:07 UTC +--- chrome/browser/download/download_prefs.cc.orig	2025-09-10 13:22:16 UTC  +++ chrome/browser/download/download_prefs.cc  @@ -11,6 +11,7 @@   #include <vector> @@ -8,7 +8,7 @@   #include "base/feature_list.h"   #include "base/files/file_util.h"   #include "base/functional/bind.h" -@@ -61,6 +62,10 @@ +@@ -62,6 +63,10 @@   #include "components/safe_browsing/content/common/file_type_policies.h"   #endif @@ -19,7 +19,7 @@   using content::BrowserContext;   using content::BrowserThread;   using content::DownloadManager; -@@ -74,7 +79,7 @@ namespace { +@@ -75,7 +80,7 @@ namespace {   // Consider downloads 'dangerous' if they go to the home directory on Linux and   // to the desktop on any platform.   bool DownloadPathIsDangerous(const base::FilePath& download_path) { @@ -28,7 +28,7 @@     base::FilePath home_dir = base::GetHomeDir();     if (download_path == home_dir) {       return true; -@@ -180,7 +185,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi +@@ -181,7 +186,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi   #endif  // BUILDFLAG(IS_CHROMEOS)   #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -37,7 +37,7 @@     should_open_pdf_in_system_reader_ =         prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader);   #endif -@@ -307,7 +312,7 @@ void DownloadPrefs::RegisterProfilePrefs( +@@ -308,7 +313,7 @@ void DownloadPrefs::RegisterProfilePrefs(     registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory,                                    default_download_path);   #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -46,7 +46,7 @@     registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false);   #endif   #if BUILDFLAG(IS_ANDROID) -@@ -480,7 +485,7 @@ void DownloadPrefs::DisableAutoOpenByUserBasedOnExtens +@@ -481,7 +486,7 @@ void DownloadPrefs::DisableAutoOpenByUserBasedOnExtens   }   #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -55,7 +55,7 @@   void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) {     if (should_open_pdf_in_system_reader_ == should_open)       return; -@@ -506,7 +511,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons +@@ -507,7 +512,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons   void DownloadPrefs::ResetAutoOpenByUser() {   #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -64,7 +64,7 @@     SetShouldOpenPdfInSystemReader(false);   #endif     auto_open_by_user_.clear(); -@@ -543,7 +548,7 @@ void DownloadPrefs::SaveAutoOpenState() { +@@ -544,7 +549,7 @@ void DownloadPrefs::SaveAutoOpenState() {   bool DownloadPrefs::CanPlatformEnableAutoOpenForPdf() const {   #if BUILDFLAG(IS_CHROMEOS)     return false;  // There is no UI for auto-open on ChromeOS. @@ -73,7 +73,7 @@     return ShouldOpenPdfInSystemReader();   #else     return false; -@@ -625,7 +630,14 @@ base::FilePath DownloadPrefs::SanitizeDownloadTargetPa +@@ -626,7 +631,14 @@ base::FilePath DownloadPrefs::SanitizeDownloadTargetPa   #else     // If the stored download directory is an absolute path, we presume it's     // correct; there's not really much more validation we can do here. | 
