mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Finally, after a long wait, an electron port for FreeBSD lands in the portstree. A huge thanks to everyone contributed to this huge effort and to the maintainer that is willing to take the burden of the maintainership!
20 lines
939 B
C++
20 lines
939 B
C++
--- chrome/browser/download/download_commands.cc.orig 2019-03-15 06:37:02 UTC
|
|
+++ chrome/browser/download/download_commands.cc
|
|
@@ -408,7 +408,7 @@ Browser* DownloadCommands::GetBrowser() const {
|
|
return browser_displayer.browser();
|
|
}
|
|
|
|
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
|
|
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
|
|
bool DownloadCommands::IsDownloadPdf() const {
|
|
base::FilePath path = download_item_->GetTargetFilePath();
|
|
return path.MatchesExtension(FILE_PATH_LITERAL(".pdf"));
|
|
@@ -425,7 +425,7 @@ bool DownloadCommands::CanOpenPdfInSystemViewer() cons
|
|
return IsDownloadPdf() &&
|
|
(IsAdobeReaderDefaultPDFViewer() ? is_adobe_pdf_reader_up_to_date
|
|
: true);
|
|
-#elif defined(OS_MACOSX) || defined(OS_LINUX)
|
|
+#elif defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
|
|
return IsDownloadPdf();
|
|
#endif
|
|
}
|