Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: content/app/content_main_runner.cc

Issue 836733006: Fix EnableTerminationOnOutOfMemory for malloc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix calloc Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/memory_win.cc ('k') | content/app/startup_helper_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 87950670b86f5814a7475ed2a66a778673951fe3..6302e96f91078c63a1a285e42b9326c3fd8dfd0d 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -486,6 +486,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
int Initialize(const ContentMainParams& params) override {
ui_task_ = params.ui_task;
+ base::EnableTerminationOnOutOfMemory();
#if defined(OS_WIN)
RegisterInvalidParamHandler();
ui::win::CreateATLModuleIfNeeded();
@@ -602,7 +603,6 @@ class ContentMainRunnerImpl : public ContentMainRunner {
if (!delegate_ || delegate_->ShouldEnableTerminationOnHeapCorruption())
base::EnableTerminationOnHeapCorruption();
- base::EnableTerminationOnOutOfMemory();
#if !defined(OS_IOS)
SetProcessTitleFromCommandLine(argv);
« no previous file with comments | « base/process/memory_win.cc ('k') | content/app/startup_helper_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698