Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2754)

Unified Diff: chrome/common/chrome_switches.cc

Issue 345034: Add a command line flag to force all network traffic through a particular ser... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | net/base/fixed_host_resolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
===================================================================
--- chrome/common/chrome_switches.cc (revision 30486)
+++ chrome/common/chrome_switches.cc (working copy)
@@ -562,6 +562,16 @@
// 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";
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | net/base/fixed_host_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698