Commit 3109a771 authored by Joshua Peraza's avatar Joshua Peraza Committed by Commit Bot

linux: enable crashpad

This change disables Breakpad and enables Crashpad for Chrome_Linux. It
should not affect other embedders or Chrome_ChromeOS.

Change-Id: I7017f1c6530fe58235e7ce955051b5b469e75244
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1958693
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#724394}
parent 0321742f
......@@ -18,6 +18,10 @@
#include "headless/public/headless_shell.h"
#include "ui/gfx/switches.h"
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
#include "components/crash/content/app/crashpad.h"
#endif
#if defined(OS_MACOSX)
#include "chrome/app/chrome_main_mac.h"
#endif
......@@ -107,6 +111,13 @@ int ChromeMain(int argc, const char** argv) {
}
#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN)
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
// TODO(https://crbug.com/942279): This can be removed when Chrome_ChromeOS
// and other embedders on Chrome OS and Linux are ready to use Crashpad.
base::CommandLine::ForCurrentProcess()->AppendSwitch(
crash_reporter::kEnableCrashpad);
#endif
int rv = content::ContentMain(params);
return rv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment