diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 04:21:51 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 04:21:51 +0000 |
commit | 2456c5732fe85109c39dbdd3dbbb8262589a847e (patch) | |
tree | 2c80c90ee30afb95428903c267e0eebe028d73f5 /chrome/plugin/plugin_main.cc | |
parent | 22dac03746590ef7367c8af21ace424b77cae16d (diff) | |
download | chromium_src-2456c5732fe85109c39dbdd3dbbb8262589a847e.zip chromium_src-2456c5732fe85109c39dbdd3dbbb8262589a847e.tar.gz chromium_src-2456c5732fe85109c39dbdd3dbbb8262589a847e.tar.bz2 |
Linux: Catch plugin crashes.
BUG=25964
TEST=none
Review URL: http://codereview.chromium.org/371015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/plugin_main.cc')
-rw-r--r-- | chrome/plugin/plugin_main.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc index b051501..0b67360 100644 --- a/chrome/plugin/plugin_main.cc +++ b/chrome/plugin/plugin_main.cc @@ -28,6 +28,10 @@ #include "chrome/common/plugin_carbon_interpose_constants_mac.h" #endif +#if defined(USE_LINUX_BREAKPAD) +#include "chrome/app/breakpad_linux.h" +#endif + #if defined(OS_MACOSX) // Removes our Carbon library interposing from the environment so that it // doesn't carry into any processes that plugins might start. @@ -65,6 +69,11 @@ static void TrimInterposeEnvironment() { // main() routine for running as the plugin process. int PluginMain(const MainFunctionParams& parameters) { +#if defined(USE_LINUX_BREAKPAD) + // Needs to be called after we have chrome::DIR_USER_DATA. + InitCrashReporter(); +#endif + // The main thread of the plugin services UI. #if defined(OS_MACOSX) // For Mac NPAPI plugins, we don't want a MessageLoop::TYPE_UI because |