diff options
author | yael.aharon@intel.com <yael.aharon@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-24 23:53:10 +0000 |
---|---|---|
committer | yael.aharon@intel.com <yael.aharon@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-24 23:53:10 +0000 |
commit | cbb22eb172522dd37d943a0613743117dd23845d (patch) | |
tree | 4e848a2109216c41841d183ebe88c22f3786c7ea /chrome/common | |
parent | 6bcbf174dcf48419f44c54ad4ff4ddd25bedb26f (diff) | |
download | chromium_src-cbb22eb172522dd37d943a0613743117dd23845d.zip chromium_src-cbb22eb172522dd37d943a0613743117dd23845d.tar.gz chromium_src-cbb22eb172522dd37d943a0613743117dd23845d.tar.bz2 |
Separate NaCl switches to their own file.
This is part of an effort to componentize NaCl code.
BUG=244791
Review URL: https://chromiumcodereview.appspot.com/17074012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208306 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/DEPS | 1 | ||||
-rw-r--r-- | chrome/common/chrome_paths_win.cc | 1 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 30 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 7 | ||||
-rw-r--r-- | chrome/common/nacl_cmd_line.cc | 2 |
5 files changed, 4 insertions, 37 deletions
diff --git a/chrome/common/DEPS b/chrome/common/DEPS index 70cdc98..3e8aa9b 100644 --- a/chrome/common/DEPS +++ b/chrome/common/DEPS @@ -4,6 +4,7 @@ include_rules = [ "+chromeos", # For chromeos_switches.h "+components/autofill/core/common", "+components/breakpad/common", + "+components/nacl/common", "+device/bluetooth", # For BluetoothDevicePermission "+device/media_transfer_protocol", # For MediaTransferProtocolManager "+device/usb", # For UsbDevicePermission diff --git a/chrome/common/chrome_paths_win.cc b/chrome/common/chrome_paths_win.cc index 5eb6591..337f9b9 100644 --- a/chrome/common/chrome_paths_win.cc +++ b/chrome/common/chrome_paths_win.cc @@ -17,6 +17,7 @@ #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_switches.h" #include "chrome/installer/util/browser_distribution.h" +#include "components/nacl/common/nacl_switches.h" namespace chrome { diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 61be5e0..72825e9c 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -916,33 +916,6 @@ const char kMetricsRecordingOnly[] = "metrics-recording-only"; // Enables multiprofile Chrome. const char kMultiProfiles[] = "multi-profiles"; -// Causes the process to run as a NativeClient broker -// (used for launching NaCl loader processes on 64-bit Windows). -const char kNaClBrokerProcess[] = "nacl-broker"; - -// Uses NaCl manifest URL to choose whether NaCl program will be debugged by -// debug stub. -// Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses -// the same syntax as patterns in Chrome extension manifest. The only difference -// is that * scheme matches all schemes instead of matching only http and https. -// If the value doesn't start with !, a program will be debugged if manifest URL -// matches any pattern. If the value starts with !, a program will be debugged -// if manifest URL does not match any pattern. -const char kNaClDebugMask[] = "nacl-debug-mask"; - -// Native Client GDB debugger that will be launched automatically when needed. -const char kNaClGdb[] = "nacl-gdb"; - -// GDB script to pass to the nacl-gdb debugger at startup. -const char kNaClGdbScript[] = "nacl-gdb-script"; - -// Causes the process to run as a NativeClient loader. -const char kNaClLoaderProcess[] = "nacl-loader"; - -// On POSIX only: the contents of this flag are prepended to the nacl-loader -// command line. Useful values might be "valgrind" or "xterm -e gdb --args". -const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; - // List of native messaging hosts outside of the default location. Used for // tests. The value must be comma-separate lists of key-value pairs separated // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". @@ -1415,9 +1388,6 @@ const char kTabCapture[] = "enable-tab-capture"; // Passes the name of the current running automated test to Chrome. const char kTestName[] = "test-name"; -// Runs the security test for the NaCl loader sandbox. -const char kTestNaClSandbox[] = "test-nacl-sandbox"; - // Type of the current test harness ("browser" or "ui"). const char kTestType[] = "test-type"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 003065d..ce4b2f8 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -250,12 +250,6 @@ extern const char kMemoryProfiling[]; extern const char kMessageLoopHistogrammer[]; extern const char kMetricsRecordingOnly[]; extern const char kMultiProfiles[]; -extern const char kNaClBrokerProcess[]; -extern const char kNaClDebugMask[]; -extern const char kNaClGdb[]; -extern const char kNaClGdbScript[]; -extern const char kNaClLoaderCmdPrefix[]; -extern const char kNaClLoaderProcess[]; extern const char kNativeMessagingHosts[]; extern const char kNetLogLevel[]; extern const char kNewProfileManagement[]; @@ -373,7 +367,6 @@ extern const char kSyncDisableOAuth2Token[]; extern const char kSyncfsEnableDirectoryOperation[]; extern const char kTabBrowserDragging[]; extern const char kTabCapture[]; -extern const char kTestNaClSandbox[]; extern const char kTestName[]; extern const char kTestType[]; extern const char kTestingChannelID[]; diff --git a/chrome/common/nacl_cmd_line.cc b/chrome/common/nacl_cmd_line.cc index 05c8af6..9fb1a0e 100644 --- a/chrome/common/nacl_cmd_line.cc +++ b/chrome/common/nacl_cmd_line.cc @@ -5,6 +5,8 @@ #include "base/basictypes.h" #include "base/command_line.h" #include "chrome/common/chrome_switches.h" +#include "components/nacl/common/nacl_switches.h" +#include "content/public/common/content_switches.h" namespace nacl { |