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

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: 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 | content/public/common/content_switches.h » ('j') | content/public/common/content_switches.h » ('J')
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 35af2649b809c8b2aaed14ee754b95e2589b5be2..546f32d23951aaf889f1d594d12577069aa2b9e3 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -639,6 +639,10 @@ bool RenderProcessHostImpl::Init() {
if (!renderer_prefix.empty())
cmd_line->PrependWrapper(renderer_prefix);
AppendRendererCommandLine(cmd_line);
+
+ if (browser_command_line.HasSwitch(switches::kWaitForDebuggerRenderer))
+ cmd_line->AppendSwitch(switches::kWaitForDebugger);
Feng Qian 2014/08/27 15:50:46 Where is the code in render process that pauses an
Jaekyun Seok (inactive) 2014/08/27 16:06:13 You can find it at https://cs.corp.google.com/#cla
Feng Qian 2014/08/27 17:52:02 Acknowledged.
+
cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
// Spawn the child process asynchronously to avoid blocking the UI thread.
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | content/public/common/content_switches.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698