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

Unified Diff: components/crash/content/app/crashpad_win.cc

Issue 2475863004: Make Crashpad start asynchronous, and move back to chrome_elf (Closed)
Patch Set: . Created 4 years, 1 month 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: components/crash/content/app/crashpad_win.cc
diff --git a/components/crash/content/app/crashpad_win.cc b/components/crash/content/app/crashpad_win.cc
index a22af313a622b6332a8630b09e9ff74d97ed2d1d..6636fa2cd6e51adb54d06f4fc3c3d55c747f232f 100644
--- a/components/crash/content/app/crashpad_win.cc
+++ b/components/crash/content/app/crashpad_win.cc
@@ -120,7 +120,7 @@ base::FilePath PlatformCrashpadInitialization(bool initial_client,
g_crashpad_client.Get().StartHandler(
exe_file, database_path, metrics_path, url, process_annotations,
- arguments, false, false);
+ arguments, false, true);
// If we're the browser, push the pipe name into the environment so child
// processes can connect to it. If we inherited another crashpad_handler's
@@ -190,6 +190,13 @@ MSVC_ENABLE_OPTIMIZE()
} // namespace
} // namespace internal
+
+void BlockUntilHandlerStarted() {
+ if (!internal::g_crashpad_client.Get().WaitForHandlerStart()) {
Mark Mentovai 2016/11/04 21:47:56 This isn’t valid unless StartHandler() returned tr
scottmg 2016/11/04 22:13:41 Ah good point, I was only considering the async pa
+ LOG(ERROR) << "Crashpad handler failed to start, crash reporting disabled";
+ }
+}
+
} // namespace crash_reporter
extern "C" {

Powered by Google App Engine
This is Rietveld 408576698