Index: chrome/browser/browser_main.cc |
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc |
index 78ae72d79bceb8102fac1b9cfcfd72320608bf80..af905c49f62e72933242983b678bcc7664050bfe 100644 |
--- a/chrome/browser/browser_main.cc |
+++ b/chrome/browser/browser_main.cc |
@@ -65,6 +65,10 @@ |
#include <signal.h> |
#endif |
+#if defined(OS_LINUX) |
+#include "chrome/app/breakpad_linux.h" |
+#endif |
+ |
// TODO(port): several win-only methods have been pulled out of this, but |
// BrowserMain() as a whole needs to be broken apart so that it's usable by |
// other platforms. For now, it's just a stub. This is a serious work in |
@@ -248,6 +252,10 @@ int BrowserMain(const MainFunctionParams& parameters) { |
CHECK(sigaction(SIGCHLD, &action, NULL) == 0); |
#endif |
+#if defined(OS_LINUX) |
+ EnableCrashDumping(); |
+#endif |
+ |
// Do platform-specific things (such as finishing initializing Cocoa) |
// prior to instantiating the message loop. This could be turned into a |
// broadcast notification. |