diff options
Diffstat (limited to 'www/chromium/files/patch-remoting_host_setup_start__host__main.cc')
-rw-r--r-- | www/chromium/files/patch-remoting_host_setup_start__host__main.cc | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/www/chromium/files/patch-remoting_host_setup_start__host__main.cc b/www/chromium/files/patch-remoting_host_setup_start__host__main.cc index 72eb2b4df2c2..2ef68f477eaf 100644 --- a/www/chromium/files/patch-remoting_host_setup_start__host__main.cc +++ b/www/chromium/files/patch-remoting_host_setup_start__host__main.cc @@ -1,15 +1,15 @@ ---- remoting/host/setup/start_host_main.cc.orig 2025-04-04 08:52:13 UTC +--- remoting/host/setup/start_host_main.cc.orig 2025-07-02 06:08:04 UTC +++ remoting/host/setup/start_host_main.cc -@@ -45,7 +45,7 @@ +@@ -44,7 +44,7 @@ #include <unistd.h> #endif // BUILDFLAG(IS_POSIX) -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "remoting/base/crash/crash_reporting_crashpad.h" #include "remoting/host/setup/daemon_controller_delegate_linux.h" #include "remoting/host/setup/start_host_as_root.h" - #endif // BUILDFLAG(IS_LINUX) -@@ -369,7 +369,7 @@ bool InitializeCloudMachineParams(HostStarter::Params& +@@ -370,7 +370,7 @@ bool InitializeCloudMachineParams(HostStarter::Params& } // namespace int StartHostMain(int argc, char** argv) { @@ -18,7 +18,7 @@ // Minimize the amount of code that runs as root on Posix systems. if (getuid() == 0) { return remoting::StartHostAsRoot(argc, argv); -@@ -394,7 +394,7 @@ int StartHostMain(int argc, char** argv) { +@@ -395,7 +395,7 @@ int StartHostMain(int argc, char** argv) { mojo::core::Init(); @@ -27,3 +27,12 @@ if (command_line->HasSwitch("no-start")) { // On Linux, registering the host with systemd and starting it is the only // reason start_host requires root. The --no-start options skips that final +@@ -445,7 +445,7 @@ int StartHostMain(int argc, char** argv) { + // We don't have a config file yet so we can't use IsUsageStatsAllowed(), + // instead we can just check the command line parameter. + if (params.enable_crash_reporting) { +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + InitializeCrashpadReporting(); + #elif BUILDFLAG(IS_WIN) + InitializeBreakpadReporting(); |