Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index 39b3eda454af020b41b2ef88c1af7679c472c518..288e298bcd60cd1b4d2a718eda2cc23c832d4e40 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -749,6 +749,10 @@ bool RenderProcessHostImpl::WaitForBackingStoreMsg( |
} |
void RenderProcessHostImpl::ReceivedBadMessage() { |
+ // The embedder can override the decision to kill the child process. |
+ if (!GetContentClient()->browser()->ShouldKillChildProcessOnBadMessage()) |
+ return; |
+ |
if (run_renderer_in_process()) { |
// In single process mode it is better if we don't suicide but just |
// crash. |