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

Unified Diff: chrome/nacl/nacl_main.cc

Issue 6193005: Enable Breakpad for crashes in trusted code in Native Client on Chrome for Li... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« chrome/app/breakpad_linux.cc ('K') | « chrome/nacl/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl/nacl_main.cc
===================================================================
--- chrome/nacl/nacl_main.cc (revision 71061)
+++ chrome/nacl/nacl_main.cc (working copy)
@@ -29,6 +29,10 @@
#include "sandbox/src/sandbox.h"
#endif
+#if defined(USE_LINUX_BREAKPAD)
+#include "chrome/app/breakpad_linux.h"
+#endif
+
#ifdef _WIN64
// main() routine for the NaCl broker process.
@@ -90,6 +94,10 @@
// main() routine for the NaCl loader process.
int NaClMain(const MainFunctionParams& parameters) {
+#if defined(USE_LINUX_BREAKPAD)
+ // Needs to be called after we have chrome::DIR_USER_DATA.
+ InitCrashReporter();
+#endif
const CommandLine& parsed_command_line = parameters.command_line_;
// This function allows pausing execution using the --nacl-startup-dialog
« chrome/app/breakpad_linux.cc ('K') | « chrome/nacl/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698