Chromium Code Reviews| Index: chrome/browser/nacl_host/nacl_process_host.cc |
| =================================================================== |
| --- chrome/browser/nacl_host/nacl_process_host.cc (revision 138748) |
| +++ chrome/browser/nacl_host/nacl_process_host.cc (working copy) |
| @@ -312,6 +312,12 @@ |
| cmd_line->AppendArgNative(FILE_PATH_LITERAL("nacl-manifest ") + |
| manifest_path.value()); |
| } |
| + const FilePath script = CommandLine::ForCurrentProcess()->GetSwitchValuePath( |
|
Mark Seaborn
2012/05/24 17:25:58
Nit: 'const' seems unnecessary for a simple, non-r
halyavin
2012/05/25 09:37:45
Done.
|
| + switches::kNaClGdbScript); |
| + if (!script.empty()) { |
| + cmd_line->AppendArg("--command"); |
| + cmd_line->AppendArgNative(script.value()); |
| + } |
| cmd_line->AppendArg("--args"); |
| const CommandLine::StringVector& argv = line->argv(); |
| for (size_t i = 0; i < argv.size(); i++) { |