diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 21:11:49 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 21:11:49 +0000 |
commit | 9b7e4497c3862ec47a97a3f726b33b4c8ed401b4 (patch) | |
tree | 2fb524d65cc4371844a4857d38f263f3d2ffa7cd /net | |
parent | e69f4bf2bc779c33086a58600060f64d0d2e118e (diff) | |
download | chromium_src-9b7e4497c3862ec47a97a3f726b33b4c8ed401b4.zip chromium_src-9b7e4497c3862ec47a97a3f726b33b4c8ed401b4.tar.gz chromium_src-9b7e4497c3862ec47a97a3f726b33b4c8ed401b4.tar.bz2 |
Fix utilities that were broken by at_exit changes.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/disk_cache/stress_cache.cc | 4 | ||||
-rw-r--r-- | net/tools/crash_cache/crash_cache.cc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/net/disk_cache/stress_cache.cc b/net/disk_cache/stress_cache.cc index 3e8714b..fd0815e 100644 --- a/net/disk_cache/stress_cache.cc +++ b/net/disk_cache/stress_cache.cc @@ -38,6 +38,7 @@ #include <windows.h> #include <string> +#include "base/at_exit.h" #include "base/logging.h" #include "base/message_loop.h" #include "base/path_service.h" @@ -199,6 +200,9 @@ void CrashHandler(const std::string& str) { // ----------------------------------------------------------------------- int main(int argc, const char* argv[]) { + // Setup an AtExitManager so Singleton objects will be destructed. + base::AtExitManager at_exit_manager; + if (argc < 2) return MasterCode(); diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc index f007feb..17537a8 100644 --- a/net/tools/crash_cache/crash_cache.cc +++ b/net/tools/crash_cache/crash_cache.cc @@ -35,6 +35,7 @@ #include <windows.h> #include <string> +#include "base/at_exit.h" #include "base/file_util.h" #include "base/logging.h" #include "base/message_loop.h" @@ -316,6 +317,9 @@ int SlaveCode(const std::wstring& path, RankCrashes action) { // ----------------------------------------------------------------------- int main(int argc, const char* argv[]) { + // Setup an AtExitManager so Singleton objects will be destructed. + base::AtExitManager at_exit_manager; + if (argc < 2) return MasterCode(); |