Commit b503c9f9 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Fix a typo in headless code.

Spell "crashpad" correctly.

Change-Id: Ib8933d1254b86394e6c1ee4027dc012a3697ecfc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1539102Reviewed-by: default avatarDavid Vallet <dvallet@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#644145}
parent b6799df1
...@@ -884,7 +884,7 @@ jumbo_static_library("headless_shell_lib") { ...@@ -884,7 +884,7 @@ jumbo_static_library("headless_shell_lib") {
} }
if (is_win) { if (is_win) {
defines = [ "HEADLESS_USE_CRASPHAD" ] defines = [ "HEADLESS_USE_CRASHPAD" ]
deps += [ deps += [
"//components/crash/content/app:crash_export_thunks", "//components/crash/content/app:crash_export_thunks",
......
...@@ -601,7 +601,7 @@ bool ValidateCommandLine(const base::CommandLine& command_line) { ...@@ -601,7 +601,7 @@ bool ValidateCommandLine(const base::CommandLine& command_line) {
int HeadlessShellMain(HINSTANCE instance, int HeadlessShellMain(HINSTANCE instance,
sandbox::SandboxInterfaceInfo* sandbox_info) { sandbox::SandboxInterfaceInfo* sandbox_info) {
base::CommandLine::Init(0, nullptr); base::CommandLine::Init(0, nullptr);
#if defined(HEADLESS_USE_CRASPHAD) #if defined(HEADLESS_USE_CRASHPAD)
std::string process_type = std::string process_type =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
::switches::kProcessType); ::switches::kProcessType);
...@@ -610,7 +610,7 @@ int HeadlessShellMain(HINSTANCE instance, ...@@ -610,7 +610,7 @@ int HeadlessShellMain(HINSTANCE instance,
*base::CommandLine::ForCurrentProcess(), base::FilePath(), *base::CommandLine::ForCurrentProcess(), base::FilePath(),
::switches::kProcessType, switches::kUserDataDir); ::switches::kProcessType, switches::kUserDataDir);
} }
#endif // defined(HEADLESS_USE_CRASPHAD) #endif // defined(HEADLESS_USE_CRASHPAD)
RunChildProcessIfNeeded(instance, sandbox_info); RunChildProcessIfNeeded(instance, sandbox_info);
HeadlessBrowser::Options::Builder builder(0, nullptr); HeadlessBrowser::Options::Builder builder(0, nullptr);
builder.SetInstance(instance); builder.SetInstance(instance);
......
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