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

Side by Side Diff: chrome/common/nacl_cmd_line.cc

Issue 15957008: Move NaCl related switches to their own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try to fix the windows build (I don't have access to a windows machine) 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/nacl.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "chrome/nacl/nacl_switches.h"
8 9
9 namespace nacl { 10 namespace nacl {
10 11
11 void CopyNaClCommandLineArguments(CommandLine* cmd_line) { 12 void CopyNaClCommandLineArguments(CommandLine* cmd_line) {
12 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 13 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
13 14
14 // Propagate the following switches to the NaCl loader command line (along 15 // Propagate the following switches to the NaCl loader command line (along
15 // with any associated values) if present in the browser command line. 16 // with any associated values) if present in the browser command line.
16 // TODO(gregoryd): check which flags of those below can be supported. 17 // TODO(gregoryd): check which flags of those below can be supported.
17 static const char* const kSwitchNames[] = { 18 static const char* const kSwitchNames[] = {
(...skipping 10 matching lines...) Expand all
28 switches::kNoErrorDialogs, 29 switches::kNoErrorDialogs,
29 #if defined(OS_MACOSX) 30 #if defined(OS_MACOSX)
30 switches::kEnableSandboxLogging, 31 switches::kEnableSandboxLogging,
31 #endif 32 #endif
32 }; 33 };
33 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 34 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
34 arraysize(kSwitchNames)); 35 arraysize(kSwitchNames));
35 } 36 }
36 37
37 } // namespace nacl 38 } // namespace nacl
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/nacl.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698