diff options
author | Carlos J. Puga Medina <cpm@FreeBSD.org> | 2017-03-17 23:42:52 +0000 |
---|---|---|
committer | Carlos J. Puga Medina <cpm@FreeBSD.org> | 2017-03-17 23:42:52 +0000 |
commit | e292ba0099ecff2e3e31fcb6cac28ac8e243c43d (patch) | |
tree | 1b74950e1b5750f688522886a8b73c01e56a18c5 /www/chromium/files/patch-chrome_browser_download_download__prefs.cc | |
parent | games/openra: update GeoLite2 to March snapshot (diff) |
www/chromium: update to 57.0.2987.110
MFH: 2017Q1
Security: https://vuxml.freebsd.org/freebsd/a505d397-0758-11e7-8d8b-e8e0b747a45a.html
Diffstat (limited to 'www/chromium/files/patch-chrome_browser_download_download__prefs.cc')
-rw-r--r-- | www/chromium/files/patch-chrome_browser_download_download__prefs.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/www/chromium/files/patch-chrome_browser_download_download__prefs.cc b/www/chromium/files/patch-chrome_browser_download_download__prefs.cc index 9788b073e178..e7659720c78d 100644 --- a/www/chromium/files/patch-chrome_browser_download_download__prefs.cc +++ b/www/chromium/files/patch-chrome_browser_download_download__prefs.cc @@ -1,4 +1,4 @@ ---- chrome/browser/download/download_prefs.cc.orig 2017-01-26 00:49:08 UTC +--- chrome/browser/download/download_prefs.cc.orig 2017-03-09 20:04:28 UTC +++ chrome/browser/download/download_prefs.cc @@ -56,7 +56,7 @@ namespace { // Consider downloads 'dangerous' if they go to the home directory on Linux and @@ -16,9 +16,9 @@ -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) should_open_pdf_in_system_reader_ = - prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader) || - prefs->GetBoolean(prefs::kPluginsAlwaysOpenPdfExternally); -@@ -215,7 +215,7 @@ void DownloadPrefs::RegisterProfilePrefs + prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader); + #endif +@@ -213,7 +213,7 @@ void DownloadPrefs::RegisterProfilePrefs default_download_path); registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory, default_download_path); @@ -27,7 +27,7 @@ registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false); #endif } -@@ -292,7 +292,7 @@ bool DownloadPrefs::IsDownloadPathManage +@@ -290,7 +290,7 @@ bool DownloadPrefs::IsDownloadPathManage } bool DownloadPrefs::IsAutoOpenUsed() const { @@ -36,7 +36,7 @@ if (ShouldOpenPdfInSystemReader()) return true; #endif -@@ -306,7 +306,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBas +@@ -304,7 +304,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBas return false; DCHECK(extension[0] == base::FilePath::kExtensionSeparator); extension.erase(0, 1); @@ -45,16 +45,16 @@ if (extension == FILE_PATH_LITERAL("pdf") && ShouldOpenPdfInSystemReader()) return true; #endif -@@ -340,7 +340,7 @@ void DownloadPrefs::DisableAutoOpenBased +@@ -338,7 +338,7 @@ void DownloadPrefs::DisableAutoOpenBased SaveAutoOpenState(); } -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) { - should_open_pdf_in_system_reader_ = should_open || - profile_->GetPrefs()->GetBoolean(prefs::kPluginsAlwaysOpenPdfExternally); -@@ -365,7 +365,7 @@ void DownloadPrefs::DisableAdobeVersionC + if (should_open_pdf_in_system_reader_ == should_open) + return; +@@ -359,7 +359,7 @@ bool DownloadPrefs::ShouldOpenPdfInSyste #endif void DownloadPrefs::ResetAutoOpen() { |