diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:57:42 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:57:42 +0000 |
commit | e4fe427bde7602c8b38996889a0eface92e1a770 (patch) | |
tree | 11a741f8da1ba12fff192fd3be9c182de5523150 /chrome_frame/chrome_frame_helper_main.cc | |
parent | e2abdeb2f6ad46c39153ccfbf233f552f0f9691a (diff) | |
download | chromium_src-e4fe427bde7602c8b38996889a0eface92e1a770.zip chromium_src-e4fe427bde7602c8b38996889a0eface92e1a770.tar.gz chromium_src-e4fe427bde7602c8b38996889a0eface92e1a770.tar.bz2 |
Add crash reporting to the long running Chrome Frame helper process.
BUG=53127
TEST=chrome_frame_helper.exe connects to the crash process.
Review URL: http://codereview.chromium.org/3287008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_helper_main.cc')
-rw-r--r-- | chrome_frame/chrome_frame_helper_main.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome_frame/chrome_frame_helper_main.cc b/chrome_frame/chrome_frame_helper_main.cc index f4369a88..5582261 100644 --- a/chrome_frame/chrome_frame_helper_main.cc +++ b/chrome_frame/chrome_frame_helper_main.cc @@ -15,6 +15,8 @@ #include <crtdbg.h> #include <windows.h> +#include "chrome_frame/crash_server_init.h" + // Window class and window names. const wchar_t kChromeFrameHelperWindowClassName[] = L"ChromeFrameHelperWindowClass"; @@ -100,8 +102,9 @@ HWND RegisterAndCreateWindow(HINSTANCE hinstance) { } int APIENTRY wWinMain(HINSTANCE hinstance, HINSTANCE, wchar_t*, int show_cmd) { - // TODO(robertshield): Before this actually gets used, add breakpad - // integration. + const wchar_t* cmd_line = ::GetCommandLine(); + google_breakpad::scoped_ptr<google_breakpad::ExceptionHandler> breakpad( + InitializeCrashReporting(cmd_line)); // Create a window with a known class and title just to listen for WM_CLOSE // messages that will shut us down. |