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

Unified Diff: content/browser/browser_child_process_host_impl.cc

Issue 1009583004: Add UMA histograms and logging for bad IPC message handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 e606902637c531f0d45b60f0ebb771bb58b44bc0..117aa46f4f715a746a9a45f168cc31b404f0d052 100644
--- a/content/browser/browser_child_process_host_impl.cc
+++ b/content/browser/browser_child_process_host_impl.cc
@@ -255,6 +255,8 @@ void BrowserChildProcessHostImpl::OnBadMessageReceived(
switches::kDisableKillAfterBadIPC)) {
return;
}
+ LOG(ERROR) << "Terminating child process for bad IPC message of type "
+ << message.type();
base::KillProcess(child_process_->GetProcess().Handle(),
RESULT_CODE_KILLED_BAD_MESSAGE, false);
}

Powered by Google App Engine
This is Rietveld 408576698