diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-03 06:03:31 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-03 06:03:31 +0000 |
commit | 9697c5abfad683112288d367f07bf68d7eb9a05a (patch) | |
tree | 9f3568bad2be33a164e6f8f30f49b26e37f28347 /chrome/common/chrome_switches.cc | |
parent | 7ea093ba47c5a1a1652f7249faf56399dd66876f (diff) | |
download | chromium_src-9697c5abfad683112288d367f07bf68d7eb9a05a.zip chromium_src-9697c5abfad683112288d367f07bf68d7eb9a05a.tar.gz chromium_src-9697c5abfad683112288d367f07bf68d7eb9a05a.tar.bz2 |
Add a command line flag to force all network traffic through a particular server.
The command line is:
--fixed-server=host:port
When set, all traffic will be diverted through this server. This is useful for
testing purposes with fixed servers.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/345034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_switches.cc')
-rw-r--r-- | chrome/common/chrome_switches.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 1099dd55..a1d66b9 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -566,6 +566,16 @@ const char kUninstall[] = "uninstall"; // This is a temporary testing flag. const char kUseFlip[] = "use-flip"; +// Force all requests to go to this server. This commandline is provided +// for testing purposes only, and will likely be removed soon. It can also +// hurt startup performance as it does a synchronous name resolution on the +// UI thread. The port is not optional. +// The host resolution using this scheme is done exactly once at startup. +// From that point on, it is completely a static configuration. +// TODO(mbelshe): Remove this flag when testing is complete. +// --testing-fixed-server=myserver:1000 +const char kFixedServer[] = "testing-fixed-server"; + // Use the low fragmentation heap for the CRT. const char kUseLowFragHeapCrt[] = "use-lf-heap"; |