Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: headless/app/headless_shell.cc

Issue 2693943004: headless: Add support for minidump generation on Linux (Closed)
Patch Set: Formatting Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: headless/app/headless_shell.cc
diff --git a/headless/app/headless_shell.cc b/headless/app/headless_shell.cc
index 06940881c3f58f14d53e8fa4f5461c57b2398c8a..66f2abeebb182dd9301445b758132c8f4299302a 100644
--- a/headless/app/headless_shell.cc
+++ b/headless/app/headless_shell.cc
@@ -7,6 +7,7 @@
#include <string>
#include "base/base64.h"
+#include "base/base_switches.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
@@ -441,6 +442,13 @@ int HeadlessShellMain(int argc, const char** argv) {
if (!ValidateCommandLine(command_line))
return EXIT_FAILURE;
+ if (command_line.HasSwitch(::switches::kEnableCrashReporter))
+ builder.SetCrashReporterEnabled(true);
+ if (command_line.HasSwitch(switches::kCrashDumpsDir)) {
+ builder.SetCrashDumpsDir(
+ command_line.GetSwitchValuePath(switches::kCrashDumpsDir));
+ }
+
if (command_line.HasSwitch(::switches::kRemoteDebuggingPort)) {
std::string address = kDevToolsHttpServerAddress;
if (command_line.HasSwitch(switches::kRemoteDebuggingAddress)) {

Powered by Google App Engine
This is Rietveld 408576698