--- remoting/base/crash/crashpad_database_manager.cc.orig 2026-09-25 15:26:43 UTC +++ remoting/base/crash/crashpad_database_manager.cc @@ -24,7 +24,7 @@ #if BUILDFLAG(IS_WIN) #include "base/base_paths.h" #include "base/strings/utf_string_conversions.h" -#elif BUILDFLAG(IS_LINUX) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include #include @@ -35,7 +35,7 @@ namespace remoting { namespace { -#if !BUILDFLAG(IS_LINUX) +#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) const base::FilePath::CharType kChromotingCrashpadDatabasePath[] = FILE_PATH_LITERAL("crashpad"); #endif @@ -52,7 +52,7 @@ const size_t kMaxReportsToRetain = 20; // Maximum number of days to keep reports around in the local database. const size_t kMaxReportAgeDays = 7; -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) inline base::FilePath GetUnifiedCrashpadDatabasePath() { return GetVarLibDir().Append("crashpad"); } @@ -79,7 +79,7 @@ base::FilePath GetCrashpadDatabasePath() { base::FilePath path; base::PathService::Get(base::BasePathKey::DIR_ASSETS, &path); return path.Append(kChromotingCrashpadDatabasePath); -#elif BUILDFLAG(IS_LINUX) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) if (getuid() == 0) { // Used by the daemon process or the elevated start-host process. return GetUnifiedCrashpadDatabasePath();