blob: 58e4acfd7b3a614eaa94164619add4d63544e53b (
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
|
--- services/screen_ai/public/cpp/utilities.cc.orig 2025-07-02 06:08:04 UTC
+++ services/screen_ai/public/cpp/utilities.cc
@@ -21,7 +21,7 @@ namespace {
// The maximum image dimension which is processed without downsampling by OCR.
constexpr uint32_t kMaxImageDimensionForOcr = 2048;
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
constexpr char kBinaryPathSwitch[] = "screen-ai-binary";
#endif
@@ -42,7 +42,7 @@ constexpr char kScreenAIDlcRootPath[] =
#endif
#if BUILDFLAG(ENABLE_SCREEN_AI_BROWSERTESTS)
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
constexpr base::FilePath::CharType kScreenAIResourcePathForTests[] =
FILE_PATH_LITERAL("third_party/screen-ai/linux/resources");
#elif BUILDFLAG(IS_MAC)
@@ -131,7 +131,7 @@ base::FilePath GetComponentBinaryPathForTests() {
const char* GetBinaryPathSwitch() {
// This is only used on Linux and ChromeOS.
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
return kBinaryPathSwitch;
#else
return nullptr;
|