| Index: headless/app/headless_shell.cc
|
| diff --git a/headless/app/headless_shell.cc b/headless/app/headless_shell.cc
|
| index 04300eec603be7f07906207771a416895ff76ce7..7c187b00a8274641ae3b08bc4b0020eeae8784fe 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)) {
|
|
|