summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authoryael.aharon@intel.com <yael.aharon@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 23:17:52 +0000
committeryael.aharon@intel.com <yael.aharon@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 23:17:52 +0000
commitd2e2ccf29df48310fbffb3b9d38463872bd28d17 (patch)
tree402d66dea9e363d2b99993aca326bf17b46944ea /chrome/common
parent30a0d4c9ac288cb5a63a6ccb0c430b2cb1f3739c (diff)
downloadchromium_src-d2e2ccf29df48310fbffb3b9d38463872bd28d17.zip
chromium_src-d2e2ccf29df48310fbffb3b9d38463872bd28d17.tar.gz
chromium_src-d2e2ccf29df48310fbffb3b9d38463872bd28d17.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/17379019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/DEPS1
-rw-r--r--chrome/common/chrome_paths_win.cc1
-rw-r--r--chrome/common/chrome_switches.cc30
-rw-r--r--chrome/common/chrome_switches.h7
-rw-r--r--chrome/common/nacl_cmd_line.cc2
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 641115e..64cb4e8 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -912,33 +912,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".
@@ -1411,9 +1384,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 532880c..7958283 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -249,12 +249,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[];
@@ -372,7 +366,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 {