summaryrefslogtreecommitdiffstats
path: root/chrome/tools/crash_service
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 03:44:23 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 03:44:23 +0000
commit94d8915e56cdfd2e78837d7647cfc3398a5fa1d0 (patch)
treec4e31bf666c9ef3049cd92ba890f28557ab0502c /chrome/tools/crash_service
parentae645471f62870fbe4d09eaa82e9043ffe7284b8 (diff)
downloadchromium_src-94d8915e56cdfd2e78837d7647cfc3398a5fa1d0.zip
chromium_src-94d8915e56cdfd2e78837d7647cfc3398a5fa1d0.tar.gz
chromium_src-94d8915e56cdfd2e78837d7647cfc3398a5fa1d0.tar.bz2
Fix build bustage
- Forgot to fix one main() function. TBR=nsylvain git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/crash_service')
-rw-r--r--chrome/tools/crash_service/main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/tools/crash_service/main.cc b/chrome/tools/crash_service/main.cc
index ab27ddd..e61dba5 100644
--- a/chrome/tools/crash_service/main.cc
+++ b/chrome/tools/crash_service/main.cc
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <tchar.h>
+#include "base/at_exit.h"
#include "base/file_util.h"
#include "base/logging.h"
@@ -57,6 +58,9 @@ bool GetCrashServiceDirectory(std::wstring* dir) {
int __stdcall wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd_line,
int show_mode) {
+ // Manages the destruction of singletons.
+ base::AtExitManager exit_manager;
+
// We use/create a directory under the user's temp folder, for logging.
std::wstring operating_dir;
GetCrashServiceDirectory(&operating_dir);