summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 05:42:42 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 05:42:42 +0000
commit003922c51c72d11ad6c99b7626b793f3a2d25ab0 (patch)
tree8b3576b032ade1788ebe6aac03d25f999e620cab /net/tools
parent75dfa965b9221a99e515df165a1ef2ac46cf6e1b (diff)
downloadchromium_src-003922c51c72d11ad6c99b7626b793f3a2d25ab0.zip
chromium_src-003922c51c72d11ad6c99b7626b793f3a2d25ab0.tar.gz
chromium_src-003922c51c72d11ad6c99b7626b793f3a2d25ab0.tar.bz2
tld_cleanup's main() needs the new base::AtExitManager too, so DCHECKs don't fail when we execute it during the build.
TBR=cpu git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r--net/tools/tld_cleanup/tld_cleanup.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/tools/tld_cleanup/tld_cleanup.cc b/net/tools/tld_cleanup/tld_cleanup.cc
index 2efac1b7..1dc5391 100644
--- a/net/tools/tld_cleanup/tld_cleanup.cc
+++ b/net/tools/tld_cleanup/tld_cleanup.cc
@@ -45,6 +45,7 @@
#include <set>
#include <string>
+#include "base/at_exit.h"
#include "base/file_util.h"
#include "base/icu_util.h"
#include "base/logging.h"
@@ -235,6 +236,9 @@ int main(int argc, const char* argv[]) {
return 1;
}
+ // Manages the destruction of singletons.
+ base::AtExitManager exit_manager;
+
// Only use OutputDebugString in debug mode.
#ifdef NDEBUG
logging::LoggingDestination destination = logging::LOG_ONLY_TO_FILE;