Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: components/nacl/common/nacl_cmd_line.cc

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make ios happy Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
9 #include "content/public/common/content_switches.h"
8 10
9 namespace nacl { 11 namespace nacl {
10 12
11 void CopyNaClCommandLineArguments(CommandLine* cmd_line) { 13 void CopyNaClCommandLineArguments(CommandLine* cmd_line) {
12 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 14 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
13 15
14 // Propagate the following switches to the NaCl loader command line (along 16 // Propagate the following switches to the NaCl loader command line (along
15 // with any associated values) if present in the browser command line. 17 // with any associated values) if present in the browser command line.
16 // TODO(gregoryd): check which flags of those below can be supported. 18 // TODO(gregoryd): check which flags of those below can be supported.
17 static const char* const kSwitchNames[] = { 19 static const char* const kSwitchNames[] = {
18 switches::kNoSandbox, 20 switches::kNoSandbox,
19 switches::kTestNaClSandbox, 21 switches::kTestNaClSandbox,
20 switches::kDisableBreakpad, 22 switches::kDisableBreakpad,
21 switches::kFullMemoryCrashReport, 23 switches::kFullMemoryCrashReport,
22 switches::kEnableLogging, 24 switches::kEnableLogging,
23 switches::kDisableLogging, 25 switches::kDisableLogging,
24 switches::kLoggingLevel, 26 switches::kLoggingLevel,
25 switches::kEnableDCHECK, 27 switches::kEnableDCHECK,
26 switches::kSilentDumpOnDCHECK,
Mark Seaborn 2013/06/21 00:00:47 Why are these two options being removed? Do this
27 switches::kMemoryProfiling,
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698