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

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

Issue 10392004: Add a runtime switch to control whether NaCl uses the IPC or SRPC Proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
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 8
9 namespace nacl { 9 namespace nacl {
10 10
11 void CopyNaClCommandLineArguments(CommandLine* cmd_line) { 11 void CopyNaClCommandLineArguments(CommandLine* cmd_line) {
12 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 12 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
13 13
14 // Propagate the following switches to the NaCl loader command line (along 14 // Propagate the following switches to the NaCl loader command line (along
15 // with any associated values) if present in the browser command line. 15 // with any associated values) if present in the browser command line.
16 // TODO(gregoryd): check which flags of those below can be supported. 16 // TODO(gregoryd): check which flags of those below can be supported.
17 static const char* const kSwitchNames[] = { 17 static const char* const kSwitchNames[] = {
18 switches::kNoSandbox, 18 switches::kNoSandbox,
19 switches::kTestNaClSandbox, 19 switches::kTestNaClSandbox,
20 switches::kDisableBreakpad, 20 switches::kDisableBreakpad,
21 switches::kFullMemoryCrashReport, 21 switches::kFullMemoryCrashReport,
22 switches::kEnableLogging, 22 switches::kEnableLogging,
23 switches::kDisableLogging, 23 switches::kDisableLogging,
24 switches::kLoggingLevel, 24 switches::kLoggingLevel,
25 switches::kEnableDCHECK, 25 switches::kEnableDCHECK,
26 switches::kSilentDumpOnDCHECK, 26 switches::kSilentDumpOnDCHECK,
27 switches::kMemoryProfiling, 27 switches::kMemoryProfiling,
28 switches::kEnableNaClDebug, 28 switches::kEnableNaClDebug,
29 switches::kNoErrorDialogs, 29 switches::kNoErrorDialogs,
30 switches::kEnableNaClIPCProxy,
30 }; 31 };
31 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 32 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
32 arraysize(kSwitchNames)); 33 arraysize(kSwitchNames));
33 } 34 }
34 35
35 } // namespace nacl 36 } // namespace nacl
OLDNEW
« chrome/common/chrome_switches.cc ('K') | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698