Commit 67fe3643 authored by thestig@chromium.org's avatar thestig@chromium.org

Cleanup: Only define various NaCl flags when PPAPI is enabled.

Review URL: https://codereview.chromium.org/431833002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287406 0039d316-1c4b-4281-b951-d872f2087c98
parent 7e794388
...@@ -961,8 +961,7 @@ const Experiment kExperiments[] = { ...@@ -961,8 +961,7 @@ const Experiment kExperiments[] = {
kOsDesktop, kOsDesktop,
SINGLE_VALUE_TYPE(switches::kEnableDownloadResumption) SINGLE_VALUE_TYPE(switches::kEnableDownloadResumption)
}, },
// Native client is compiled out when DISABLE_NACL is defined. #if defined(ENABLE_PLUGINS)
#if !defined(DISABLE_NACL)
{ {
"allow-nacl-socket-api", "allow-nacl-socket-api",
IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME,
......
...@@ -1320,9 +1320,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( ...@@ -1320,9 +1320,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
extensions::switches::kEnableScriptsRequireAction, extensions::switches::kEnableScriptsRequireAction,
extensions::switches::kExtensionsOnChromeURLs, extensions::switches::kExtensionsOnChromeURLs,
extensions::switches::kWhitelistedExtensionID, extensions::switches::kWhitelistedExtensionID,
// TODO(victorhsieh): remove the following flag once we move PPAPI FileIO
// to browser.
switches::kAllowNaClFileHandleAPI,
switches::kAppsCheckoutURL, switches::kAppsCheckoutURL,
switches::kAppsGalleryURL, switches::kAppsGalleryURL,
switches::kCloudPrintURL, switches::kCloudPrintURL,
......
...@@ -33,6 +33,7 @@ const char kAllowFileAccess[] = "allow-file-access"; ...@@ -33,6 +33,7 @@ const char kAllowFileAccess[] = "allow-file-access";
// extension API. // extension API.
const char kAllowHttpScreenCapture[] = "allow-http-screen-capture"; const char kAllowHttpScreenCapture[] = "allow-http-screen-capture";
#if defined(ENABLE_PLUGINS)
// Specifies comma-separated list of extension ids or hosts to grant // Specifies comma-separated list of extension ids or hosts to grant
// access to CRX file system APIs. // access to CRX file system APIs.
const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api"; const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api";
...@@ -44,6 +45,7 @@ const char kAllowNaClFileHandleAPI[] = "allow-nacl-file-handle-api"; ...@@ -44,6 +45,7 @@ const char kAllowNaClFileHandleAPI[] = "allow-nacl-file-handle-api";
// Specifies comma-separated list of extension ids or hosts to grant // Specifies comma-separated list of extension ids or hosts to grant
// access to TCP/UDP socket APIs. // access to TCP/UDP socket APIs.
const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api";
#endif
// Don't block outdated plugins. // Don't block outdated plugins.
const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
......
...@@ -30,9 +30,6 @@ namespace switches { ...@@ -30,9 +30,6 @@ namespace switches {
extern const char kAllowCrossOriginAuthPrompt[]; extern const char kAllowCrossOriginAuthPrompt[];
extern const char kAllowFileAccess[]; extern const char kAllowFileAccess[];
extern const char kAllowHttpScreenCapture[]; extern const char kAllowHttpScreenCapture[];
extern const char kAllowNaClCrxFsAPI[];
extern const char kAllowNaClFileHandleAPI[];
extern const char kAllowNaClSocketAPI[];
extern const char kAllowOutdatedPlugins[]; extern const char kAllowOutdatedPlugins[];
extern const char kAllowRunningInsecureContent[]; extern const char kAllowRunningInsecureContent[];
extern const char kAlternateProtocolProbabilityThreshold[]; extern const char kAlternateProtocolProbabilityThreshold[];
...@@ -404,6 +401,12 @@ extern const char kWindows8Search[]; ...@@ -404,6 +401,12 @@ extern const char kWindows8Search[];
extern const char kDebugPrint[]; extern const char kDebugPrint[];
#endif #endif
#if defined(ENABLE_PLUGINS)
extern const char kAllowNaClCrxFsAPI[];
extern const char kAllowNaClFileHandleAPI[];
extern const char kAllowNaClSocketAPI[];
#endif
#ifndef NDEBUG #ifndef NDEBUG
extern const char kFileManagerExtensionPath[]; extern const char kFileManagerExtensionPath[];
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment