| Index: content/browser/browser_child_process_host_impl.cc
|
| diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc
|
| index f2b4f8069b90b242e226e3305b090843dce6df5c..9461b624195aac8202566de0a5b26ceee8181ef5 100644
|
| --- a/content/browser/browser_child_process_host_impl.cc
|
| +++ b/content/browser/browser_child_process_host_impl.cc
|
| @@ -312,13 +312,17 @@ void BrowserChildProcessHostImpl::OnChannelError() {
|
|
|
| void BrowserChildProcessHostImpl::OnBadMessageReceived(
|
| const IPC::Message& message) {
|
| + TerminateOnBadMessageReceived(message.type());
|
| +}
|
| +
|
| +void BrowserChildProcessHostImpl::TerminateOnBadMessageReceived(uint32_t type) {
|
| HistogramBadMessageTerminated(data_.process_type);
|
| if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kDisableKillAfterBadIPC)) {
|
| return;
|
| }
|
| LOG(ERROR) << "Terminating child process for bad IPC message of type "
|
| - << message.type();
|
| + << type;
|
|
|
| // Create a memory dump. This will contain enough stack frames to work out
|
| // what the bad message was.
|
|
|