Index: content/app/content_main_runner.cc |
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc |
index 69eb8c28fd9229d941110ea77c3846a632fbc672..85bbeb984bff86f22656a887ba4998b97ee4f51c 100644 |
--- a/content/app/content_main_runner.cc |
+++ b/content/app/content_main_runner.cc |
@@ -557,7 +557,8 @@ class ContentMainRunnerImpl : public ContentMainRunner { |
is_initialized_ = true; |
delegate_ = params.delegate; |
- base::EnableTerminationOnHeapCorruption(); |
+ if (!params.disable_termination_on_heap_corruption) |
+ base::EnableTerminationOnHeapCorruption(); |
base::EnableTerminationOnOutOfMemory(); |
// The exit manager is in charge of calling the dtors of singleton objects. |