Chromium Code Reviews| Index: content/browser/child_process_launcher.cc |
| diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc |
| index e284de561fbf5358b194fcd8e3aaa5dba91ef226..2a850ca06d5ccbee5bb872d116821267bfddcd3e 100644 |
| --- a/content/browser/child_process_launcher.cc |
| +++ b/content/browser/child_process_launcher.cc |
| @@ -181,11 +181,17 @@ void ChildProcessLauncher::Context::Launch( |
| client_ = client; |
| #if defined(OS_ANDROID) |
| - // We currently only support renderer and gpu child processes. |
| + // Android only supports renderer, sandboxed utility and gpu. |
| std::string process_type = |
| cmd_line->GetSwitchValueASCII(switches::kProcessType); |
| CHECK(process_type == switches::kGpuProcess || |
| - process_type == switches::kRendererProcess); |
| + process_type == switches::kRendererProcess || |
| + process_type == switches::kUtilityProcess) |
| + << "Unsupported process type: " << process_type; |
| + |
| + // Non-sandboxed utility or rendererprocess are currently not supported. |
|
Feng Qian
2014/12/12 20:59:46
nit: space between render and process.
no sievers
2014/12/12 21:14:14
Done.
|
| + DCHECK(process_type == switches::kGpuProcess || |
| + !cmd_line->HasSwitch(switches::kNoSandbox)); |
| // We need to close the client end of the IPC channel to reliably detect |
| // child termination. We will close this fd after we create the child |