summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 18:34:10 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 18:34:10 +0000
commit6b7a5e329b36cbda1f8e432fbc92cc7acb5ede4c (patch)
tree2599faa9f78691b9e5b353b178d8485a4f6fe320 /chrome/app
parentbaf405574a8a4f40dde15ac35ba4ad0cf34846cc (diff)
downloadchromium_src-6b7a5e329b36cbda1f8e432fbc92cc7acb5ede4c.zip
chromium_src-6b7a5e329b36cbda1f8e432fbc92cc7acb5ede4c.tar.gz
chromium_src-6b7a5e329b36cbda1f8e432fbc92cc7acb5ede4c.tar.bz2
Move Linux sub process breakpad initialization to a common place.
Review URL: http://codereview.chromium.org/6667024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/chrome_main.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index 0156d2a..a1113b8 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -83,6 +83,10 @@
#include "ui/base/x/x11_util.h"
#endif
+#if defined(USE_LINUX_BREAKPAD)
+#include "chrome/app/breakpad_linux.h"
+#endif
+
extern int BrowserMain(const MainFunctionParams&);
extern int RendererMain(const MainFunctionParams&);
extern int GpuMain(const MainFunctionParams&);
@@ -227,6 +231,11 @@ void CommonSubprocessInit() {
// surface UI -- but it's likely they get this wrong too so why not.
setlocale(LC_NUMERIC, "C");
#endif
+#if defined(USE_LINUX_BREAKPAD)
+ // Needs to be called after we have chrome::DIR_USER_DATA. BrowserMain sets
+ // this up for the browser process in a different manner.
+ InitCrashReporter();
+#endif
}
// Returns true if this subprocess type needs the ResourceBundle initialized