| 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 7bd93378a39278b637467f4e119b3651b780564e..dd5a8d069d0a3e91288af1d1be2851a6d29d3def 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -769,6 +769,10 @@ bool RenderProcessHostImpl::WaitForBackingStoreMsg(
|
| }
|
|
|
| void RenderProcessHostImpl::ReceivedBadMessage() {
|
| + // The embedder can override the decision to kill the child process.
|
| + if (!GetContentClient()->browser()->ShouldKillChildOnBadMessage())
|
| + return;
|
| +
|
| if (run_renderer_in_process()) {
|
| // In single process mode it is better if we don't suicide but just
|
| // crash.
|
|
|