diff options
-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(); |