Skip to content

Commit

Permalink
set lsb-release for crashpad linux
Browse files Browse the repository at this point in the history
Change-Id: Ia80518ea4d574aea99aaebebb94aec87cdf50aa1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2812430
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870763}
  • Loading branch information
Joshua Peraza authored and Chromium LUCI CQ committed Apr 8, 2021
1 parent c08a6d2 commit 3d60439
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/crash/core/app/crashpad_linux.cc
Expand Up @@ -11,6 +11,7 @@

#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/linux_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/posix/global_descriptors.h"
Expand Down Expand Up @@ -150,6 +151,11 @@ base::FilePath PlatformCrashpadInitialization(

annotations["plat"] = std::string("Linux");

#if !(BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS))
// crash_reporter provides it's own Chromium OS values for lsb-release.
annotations["lsb-release"] = base::GetLinuxDistro();
#endif

std::vector<std::string> arguments;
if (crash_reporter_client->ShouldMonitorCrashHandlerExpensively()) {
arguments.push_back("--monitor-self");
Expand Down

0 comments on commit 3d60439

Please sign in to comment.