Index: chrome/nacl/nacl_main.cc |
=================================================================== |
--- chrome/nacl/nacl_main.cc (revision 71061) |
+++ chrome/nacl/nacl_main.cc (working copy) |
@@ -13,6 +13,11 @@ |
#include "base/command_line.h" |
#include "base/message_loop.h" |
#include "base/string_util.h" |
+ |
+#if defined(USE_LINUX_BREAKPAD) |
+#include "chrome/app/breakpad_linux.h" |
+#endif |
+ |
#include "chrome/common/child_process.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_switches.h" |
@@ -90,6 +95,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 |