diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 16:20:14 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 16:20:14 +0000 |
commit | bcb84f8b62103f881ffcb50e8aed0e9bd1a2d821 (patch) | |
tree | c6cf85e5249bdd54dc57b463e1acca0db39fd0ac /chrome/common | |
parent | b65272fdbd41b9571cb12fdb63804761e405f0ce (diff) | |
download | chromium_src-bcb84f8b62103f881ffcb50e8aed0e9bd1a2d821.zip chromium_src-bcb84f8b62103f881ffcb50e8aed0e9bd1a2d821.tar.gz chromium_src-bcb84f8b62103f881ffcb50e8aed0e9bd1a2d821.tar.bz2 |
Adding command-line option to override bans on certain port numbers through a comma-separated list of ports.
BUG= http://crbug.com/18307
TEST= url_request_unittest, use commandline flag allowed_ports=1,600. Navigate to http://www.google.com:1 or http://www.google.com:600. You should not get an ERR_UNSAFE_PORT, it will attempt to load the page.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24883 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 4 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 56ce4fd..3919556 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -598,4 +598,8 @@ const wchar_t kCookiePipe[] = L"cookie-pipe"; // Enable experimental support for cached byte-ranges. const wchar_t kEnableByteRangeSupport[] = L"enable-byte-range-support"; +// Explicitly allow additional ports using a comma separated list of port +// numbers. +const wchar_t kExplicitlyAllowedPorts[] = L"explicitly-allowed-ports"; + } // namespace switches diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index debb490..714ede2 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -242,6 +242,8 @@ extern const wchar_t kCookiePipe[]; extern const wchar_t kEnableByteRangeSupport[]; +extern const wchar_t kExplicitlyAllowedPorts[]; + } // namespace switches #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |