| Index: content/browser/zygote_host_linux.cc
|
| diff --git a/content/browser/zygote_host_linux.cc b/content/browser/zygote_host_linux.cc
|
| index 328c603962a43b55e19ee8ff8156c417fec7ad22..16cc51435c4bfd327f95a9ad8bad9c4a28b809bb 100644
|
| --- a/content/browser/zygote_host_linux.cc
|
| +++ b/content/browser/zygote_host_linux.cc
|
| @@ -58,8 +58,7 @@ ZygoteHost::ZygoteHost()
|
| init_(false),
|
| using_suid_sandbox_(false),
|
| have_read_sandbox_status_word_(false),
|
| - sandbox_status_(0) {
|
| -}
|
| + sandbox_status_(0) {}
|
|
|
| ZygoteHost::~ZygoteHost() {
|
| if (init_)
|
| @@ -110,6 +109,7 @@ void ZygoteHost::Init(const std::string& sandbox_cmd) {
|
| switches::kRegisterPepperPlugins,
|
| switches::kDisableSeccompSandbox,
|
| switches::kEnableSeccompSandbox,
|
| + switches::kNaClLinuxHelper,
|
| };
|
| cmd_line.CopySwitchesFrom(browser_command_line, kForwardSwitches,
|
| arraysize(kForwardSwitches));
|
| @@ -221,13 +221,15 @@ ssize_t ZygoteHost::ReadReply(void* buf, size_t buf_len) {
|
| return HANDLE_EINTR(read(control_fd_, buf, buf_len));
|
| }
|
|
|
| -pid_t ZygoteHost::ForkRenderer(
|
| +pid_t ZygoteHost::ForkRequest(
|
| const std::vector<std::string>& argv,
|
| - const base::GlobalDescriptors::Mapping& mapping) {
|
| + const base::GlobalDescriptors::Mapping& mapping,
|
| + const std::string& process_type) {
|
| DCHECK(init_);
|
| Pickle pickle;
|
|
|
| pickle.WriteInt(kCmdFork);
|
| + pickle.WriteString(process_type);
|
| pickle.WriteInt(argv.size());
|
| for (std::vector<std::string>::const_iterator
|
| i = argv.begin(); i != argv.end(); ++i)
|
|
|