diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/chrome.exe.deps | 1 | ||||
-rw-r--r-- | chrome/app/chrome_exe_main.cc | 3 | ||||
-rw-r--r-- | chrome/common/ipc_tests.cc | 1 | ||||
-rw-r--r-- | chrome/installer/util/run_all_unittests.cc | 3 | ||||
-rw-r--r-- | chrome/test/perf/perftests.cc | 2 | ||||
-rw-r--r-- | chrome/test/reliability/run_all_unittests.cc | 2 | ||||
-rw-r--r-- | chrome/test/ui/run_all_unittests.cc | 3 | ||||
-rw-r--r-- | chrome/test/unit/run_all_unittests.cc | 3 | ||||
-rw-r--r-- | chrome/tools/convert_dict/convert_dict.cc | 2 | ||||
-rw-r--r-- | chrome/tools/perf/flush_cache/flush_cache.cc | 2 | ||||
-rw-r--r-- | chrome/tools/profiles/generate_profile.cc | 2 | ||||
-rw-r--r-- | chrome/tools/test/image_diff/image_diff.cc | 2 |
12 files changed, 23 insertions, 3 deletions
diff --git a/chrome/app/chrome.exe.deps b/chrome/app/chrome.exe.deps index 8bb18eb..354426d 100644 --- a/chrome/app/chrome.exe.deps +++ b/chrome/app/chrome.exe.deps @@ -6,6 +6,7 @@ dependents = [ 'ADVAPI32.dll',
'SHELL32.dll',
'VERSION.dll', # Used by breakpad
+ 'winmm.dll',
]
dependents_google_chrome = [
diff --git a/chrome/app/chrome_exe_main.cc b/chrome/app/chrome_exe_main.cc index 3bf6439..cec04a9 100644 --- a/chrome/app/chrome_exe_main.cc +++ b/chrome/app/chrome_exe_main.cc @@ -9,6 +9,7 @@ #include "base/base_switches.h" #include "base/command_line.h" #include "base/debug_on_start.h" +#include "base/process_util.h" #include "chrome/app/breakpad.h" #include "chrome/app/client_util.h" #include "chrome/app/google_update_client.h" @@ -19,6 +20,8 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev_instance, wchar_t* command_line, int show_command) { + process_util::EnableTerminationOnHeapCorruption(); + // The exit manager is in charge of calling the dtors of singletons. base::AtExitManager exit_manager; diff --git a/chrome/common/ipc_tests.cc b/chrome/common/ipc_tests.cc index 67d7140..9afbc67 100644 --- a/chrome/common/ipc_tests.cc +++ b/chrome/common/ipc_tests.cc @@ -378,6 +378,7 @@ HANDLE SpawnChild(ChildType child_type) { } int main(int argc, char** argv) { + process_util::EnableTerminationOnHeapCorruption(); // Some tests may use base::Singleton<>, thus we need to instanciate // the AtExitManager or else we will leak objects. base::AtExitManager at_exit_manager; diff --git a/chrome/installer/util/run_all_unittests.cc b/chrome/installer/util/run_all_unittests.cc index c0b131f..4ab019a 100644 --- a/chrome/installer/util/run_all_unittests.cc +++ b/chrome/installer/util/run_all_unittests.cc @@ -2,9 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/process_util.h" #include "base/test_suite.h" int main(int argc, char** argv) { + process_util::EnableTerminationOnHeapCorruption(); return TestSuite(argc, argv).Run(); } - diff --git a/chrome/test/perf/perftests.cc b/chrome/test/perf/perftests.cc index d671ff8..2b1e4e5 100644 --- a/chrome/test/perf/perftests.cc +++ b/chrome/test/perf/perftests.cc @@ -4,12 +4,14 @@ #include "base/message_loop.h" #include "base/perftimer.h" +#include "base/process_util.h" #include "chrome/common/chrome_paths.cc" #include "testing/gtest/include/gtest/gtest.h" // TODO(darin): share code with base/run_all_perftests.cc int main(int argc, char **argv) { + process_util::EnableTerminationOnHeapCorruption(); chrome::RegisterPathProvider(); MessageLoop main_message_loop; diff --git a/chrome/test/reliability/run_all_unittests.cc b/chrome/test/reliability/run_all_unittests.cc index 9069b00..bb045ca 100644 --- a/chrome/test/reliability/run_all_unittests.cc +++ b/chrome/test/reliability/run_all_unittests.cc @@ -3,9 +3,11 @@ // found in the LICENSE file. #include "base/at_exit.h" +#include "base/process_util.h" #include "chrome/test/reliability/reliability_test_suite.h" int main(int argc, char **argv) { + process_util::EnableTerminationOnHeapCorruption(); return ReliabilityTestSuite(argc, argv).Run(); } diff --git a/chrome/test/ui/run_all_unittests.cc b/chrome/test/ui/run_all_unittests.cc index 9b7ec72..4400f9b 100644 --- a/chrome/test/ui/run_all_unittests.cc +++ b/chrome/test/ui/run_all_unittests.cc @@ -4,10 +4,11 @@ #include "base/at_exit.h" #include "base/platform_thread.h" +#include "base/process_util.h" #include "chrome/test/ui/ui_test_suite.h" int main(int argc, char **argv) { + process_util::EnableTerminationOnHeapCorruption(); PlatformThread::SetName("Tests_Main"); return UITestSuite(argc, argv).Run(); } - diff --git a/chrome/test/unit/run_all_unittests.cc b/chrome/test/unit/run_all_unittests.cc index 3ed4a73..97d6719 100644 --- a/chrome/test/unit/run_all_unittests.cc +++ b/chrome/test/unit/run_all_unittests.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "build/build_config.h" +#include "base/process_util.h" #include "base/test_suite.h" @@ -12,6 +13,7 @@ #endif int main(int argc, char **argv) { + process_util::EnableTerminationOnHeapCorruption(); #if defined(OS_WIN) // TODO(port): This is not Windows-specific, but needs to be ported. return ChromeTestSuite(argc, argv).Run(); @@ -19,4 +21,3 @@ int main(int argc, char **argv) { return TestSuite(argc, argv).Run(); #endif } - diff --git a/chrome/tools/convert_dict/convert_dict.cc b/chrome/tools/convert_dict/convert_dict.cc index 536253f..bf0a820 100644 --- a/chrome/tools/convert_dict/convert_dict.cc +++ b/chrome/tools/convert_dict/convert_dict.cc @@ -14,6 +14,7 @@ #include <stdio.h> #include "base/icu_util.h" +#include "base/process_util.h" #include "base/string_util.h" #include "chrome/third_party/hunspell/google/bdict_reader.h" #include "chrome/third_party/hunspell/google/bdict_writer.h" @@ -69,6 +70,7 @@ int PrintHelp() { } // namespace int main(int argc, char* argv[]) { + process_util::EnableTerminationOnHeapCorruption(); if (argc != 2) return PrintHelp(); diff --git a/chrome/tools/perf/flush_cache/flush_cache.cc b/chrome/tools/perf/flush_cache/flush_cache.cc index ef96878..f10b69b 100644 --- a/chrome/tools/perf/flush_cache/flush_cache.cc +++ b/chrome/tools/perf/flush_cache/flush_cache.cc @@ -6,10 +6,12 @@ // It's useful for testing Chrome with a cold database. #include "base/string_piece.h" +#include "base/process_util.h" #include "base/sys_string_conversions.h" #include "chrome/test/test_file_util.h" int main(int argc, const char* argv[]) { + process_util::EnableTerminationOnHeapCorruption(); if (argc <= 1) { fprintf(stderr, "flushes disk cache for files\n"); fprintf(stderr, "usage: %s <filenames>\n", argv[0]); diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc index b8484c8..99098af 100644 --- a/chrome/tools/profiles/generate_profile.cc +++ b/chrome/tools/profiles/generate_profile.cc @@ -11,6 +11,7 @@ #include "base/icu_util.h" #include "base/message_loop.h" #include "base/path_service.h" +#include "base/process_util.h" #include "base/string_util.h" #include "base/time.h" #include "chrome/browser/history/history.h" @@ -178,6 +179,7 @@ void InsertURLBatch(const std::wstring& profile_dir, int page_id, } int main(int argc, const char* argv[]) { + process_util::EnableTerminationOnHeapCorruption(); base::AtExitManager exit_manager; int next_arg = 1; diff --git a/chrome/tools/test/image_diff/image_diff.cc b/chrome/tools/test/image_diff/image_diff.cc index 04c648a..7b06ed3 100644 --- a/chrome/tools/test/image_diff/image_diff.cc +++ b/chrome/tools/test/image_diff/image_diff.cc @@ -15,6 +15,7 @@ #include "base/command_line.h" #include "base/gfx/png_decoder.h" #include "base/logging.h" +#include "base/process_util.h" #include "base/scoped_ptr.h" // Causes the app to remain open, waiting for pairs of filenames on stdin. @@ -228,6 +229,7 @@ int CompareImages(const char* file1, const char* file2) { } int main(int argc, const char* argv[]) { + process_util::EnableTerminationOnHeapCorruption(); CommandLine parsed_command_line; if (parsed_command_line.HasSwitch(kOptionPollStdin)) { // Watch stdin for filenames. |