| Index: chrome/browser/nacl_host/nacl_process_host.cc
|
| ===================================================================
|
| --- chrome/browser/nacl_host/nacl_process_host.cc (revision 124403)
|
| +++ chrome/browser/nacl_host/nacl_process_host.cc (working copy)
|
| @@ -392,8 +392,8 @@
|
| if (exe_path.empty())
|
| return false;
|
|
|
| - CommandLine* cmd_line = new CommandLine(exe_path);
|
| - nacl::CopyNaClCommandLineArguments(cmd_line);
|
| + scoped_ptr<CommandLine> cmd_line(new CommandLine(exe_path));
|
| + nacl::CopyNaClCommandLineArguments(cmd_line.get());
|
|
|
| cmd_line->AppendSwitchASCII(switches::kProcessType,
|
| switches::kNaClLoaderProcess);
|
| @@ -410,12 +410,12 @@
|
| return NaClBrokerService::GetInstance()->LaunchLoader(
|
| this, ASCIIToWide(channel_id));
|
| } else {
|
| - process_->Launch(FilePath(), cmd_line);
|
| + process_->Launch(FilePath(), cmd_line.release());
|
| }
|
| #elif defined(OS_POSIX)
|
| process_->Launch(nacl_loader_prefix.empty(), // use_zygote
|
| base::EnvironmentVector(),
|
| - cmd_line);
|
| + cmd_line.release());
|
| #endif
|
|
|
| return true;
|
|
|