blob: 6d6d4fe52a48d87ccbee6aedcec5cc29183f8e26 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- chrome/browser/safe_browsing/download_protection/file_analyzer.cc.orig 2022-03-25 21:59:56 UTC
+++ chrome/browser/safe_browsing/download_protection/file_analyzer.cc
@@ -21,7 +21,7 @@
#include "content/public/browser/browser_thread.h"
#include "url/gurl.h"
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) | BUILDFLAG(IS_BSD)
#include "chrome/browser/safe_browsing/download_protection/document_analysis_service.h"
#endif
@@ -102,7 +102,7 @@ void FileAnalyzer::Start(const base::FilePath& target_
} else if (inspection_type == DownloadFileType::DMG) {
StartExtractDmgFeatures();
#endif
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
} else if (base::FeatureList::IsEnabled(
safe_browsing::kClientSideDetectionDocumentScanning) &&
inspection_type == DownloadFileType::OFFICE_DOCUMENT) {
@@ -286,7 +286,7 @@ void FileAnalyzer::OnDmgAnalysisFinished(
}
#endif // BUILDFLAG(IS_MAC)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
void FileAnalyzer::StartExtractDocumentFeatures() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|