| Index: chrome/common/nacl_cmd_line.cc
|
| diff --git a/chrome/common/nacl_cmd_line.cc b/chrome/common/nacl_cmd_line.cc
|
| index a54f1960a17e0dc05386458ed71cbe3888a268b2..82c2634da5ed145330bf6df31a09ccdc5cb07997 100644
|
| --- a/chrome/common/nacl_cmd_line.cc
|
| +++ b/chrome/common/nacl_cmd_line.cc
|
| @@ -16,7 +16,7 @@ namespace nacl {
|
| // Propagate the following switches to the NaCl loader command line (along
|
| // with any associated values) if present in the browser command line.
|
| // TODO(gregoryd): check which flags of those below can be supported.
|
| - static const char* const switch_names[] = {
|
| + static const char* const kSwitchNames[] = {
|
| switches::kNoSandbox,
|
| switches::kTestNaClSandbox,
|
| switches::kDisableBreakpad,
|
| @@ -28,13 +28,7 @@ namespace nacl {
|
| switches::kSilentDumpOnDCHECK,
|
| switches::kMemoryProfiling,
|
| };
|
| -
|
| - for (size_t i = 0; i < arraysize(switch_names); ++i) {
|
| - if (browser_command_line.HasSwitch(switch_names[i])) {
|
| - cmd_line->AppendSwitchWithValue(
|
| - switch_names[i],
|
| - browser_command_line.GetSwitchValueASCII(switch_names[i]));
|
| - }
|
| - }
|
| + cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
|
| + arraysize(kSwitchNames));
|
| }
|
| }
|
|
|