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

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

Issue 508493003: Use WaitForDebuggerChildren to let renderer wait for gdb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reuse kWaitForDebuggerChildren Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0b95dda213f4478e756b8df802d049288b5f7398..5fceac1229db49310f486731dfcf9757de369d52 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1279,6 +1279,16 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
if (IsImplSidePaintingEnabled() &&
!browser_cmd.HasSwitch(switches::kEnableDeferredImageDecoding))
renderer_cmd->AppendSwitch(switches::kEnableDeferredImageDecoding);
+
+ // Add kWaitForDebugger to let renderer process wait for a debugger.
+ if (browser_cmd.HasSwitch(switches::kWaitForDebuggerChildren)) {
+ // Look to pass-on the kWaitForDebugger flag.
+ std::string value =
+ browser_cmd.GetSwitchValueASCII(switches::kWaitForDebuggerChildren);
+ if (value.empty() || value == switches::kRendererProcess) {
+ renderer_cmd->AppendSwitch(switches::kWaitForDebugger);
+ }
+ }
}
base::ProcessHandle RenderProcessHostImpl::GetHandle() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698