| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/base_switches.h" |
| 5 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
| 6 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 7 #include "chrome/common/chrome_switches.h" | |
| 8 #include "components/nacl/common/nacl_switches.h" | 8 #include "components/nacl/common/nacl_switches.h" |
| 9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
| 10 | 10 |
| 11 namespace nacl { | 11 namespace nacl { |
| 12 | 12 |
| 13 void CopyNaClCommandLineArguments(CommandLine* cmd_line) { | 13 void CopyNaClCommandLineArguments(CommandLine* cmd_line) { |
| 14 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); | 14 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); |
| 15 | 15 |
| 16 // Propagate the following switches to the NaCl loader command line (along | 16 // Propagate the following switches to the NaCl loader command line (along |
| 17 // with any associated values) if present in the browser command line. | 17 // with any associated values) if present in the browser command line. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 switches::kNoErrorDialogs, | 28 switches::kNoErrorDialogs, |
| 29 #if defined(OS_MACOSX) | 29 #if defined(OS_MACOSX) |
| 30 switches::kEnableSandboxLogging, | 30 switches::kEnableSandboxLogging, |
| 31 #endif | 31 #endif |
| 32 }; | 32 }; |
| 33 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 33 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 34 arraysize(kSwitchNames)); | 34 arraysize(kSwitchNames)); |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace nacl | 37 } // namespace nacl |
| OLD | NEW |