summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc10
-rw-r--r--chrome/common/chrome_switches.h1
2 files changed, 11 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";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 3c37ea9..e649ec4 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -161,6 +161,7 @@ extern const char kTrustedPlugins[];
extern const char kTryChromeAgain[];
extern const char kUninstall[];
extern const char kUseFlip[];
+extern const char kFixedServer[];
extern const char kUseLowFragHeapCrt[];
extern const char kUserAgent[];
extern const char kUserDataDir[];