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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 18254010: IPC fuzzer child process component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary include Created 7 years, 5 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/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..bd0cdf9b8399284b6a56c91aa149ec28172532f1 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()->ShouldKillChildProcessOnBadMessage())
+ return;
+
if (run_renderer_in_process()) {
// In single process mode it is better if we don't suicide but just
// crash.

Powered by Google App Engine
This is Rietveld 408576698