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

Unified Diff: headless/lib/headless_content_main_delegate.cc

Issue 2835913002: Added crashpad support for Windows (Closed)
Patch Set: Created 3 years, 8 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
« headless/app/headless_shell.cc ('K') | « headless/app/headless_shell.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/headless_content_main_delegate.cc
diff --git a/headless/lib/headless_content_main_delegate.cc b/headless/lib/headless_content_main_delegate.cc
index e5ae9ec9d7ccce0f23546d937269f1a61d6ef9ce..1f78e9f6dd6368d0ca19c4d19ad343472d234483 100644
--- a/headless/lib/headless_content_main_delegate.cc
+++ b/headless/lib/headless_content_main_delegate.cc
@@ -36,7 +36,7 @@
#include "headless/lib/renderer/headless_content_renderer_client.h"
#endif
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_WIN)
#include "components/crash/content/app/crashpad.h"
#endif
@@ -177,8 +177,10 @@ void HeadlessContentMainDelegate::InitCrashReporter(
if (process_type != switches::kZygoteProcess)
breakpad::InitCrashReporter(process_type);
#elif defined(OS_MACOSX)
- const bool browser_process = process_type.empty();
- crash_reporter::InitializeCrashpad(browser_process, process_type);
+ crash_reporter::InitializeCrashpad(process_type.empty(), process_type);
+#elif defined(OS_WIN)
+ crash_reporter::InitializeCrashpadWithEmbeddedHandler(process_type.empty(),
+ process_type);
#endif // defined(HEADLESS_USE_BREAKPAD)
}
« headless/app/headless_shell.cc ('K') | « headless/app/headless_shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698