diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 04:43:21 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 04:43:21 +0000 |
commit | 7adaccba309723e23cf444e4d64b5d5a761591e3 (patch) | |
tree | 9e95f5bdcde65854be5bfc18853c23a00bcc1749 /chrome/browser/browser_init.cc | |
parent | 595c0ffc98abcad93010c94da8e99a87efce80c8 (diff) | |
download | chromium_src-7adaccba309723e23cf444e4d64b5d5a761591e3.zip chromium_src-7adaccba309723e23cf444e4d64b5d5a761591e3.tar.gz chromium_src-7adaccba309723e23cf444e4d64b5d5a761591e3.tar.bz2 |
Add a command line switch to enable flip sockets.
With this change, flip code is now compiled
and the limited unit tests actually run.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/259064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r-- | chrome/browser/browser_init.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index 7f17dd47..eba5517 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -55,6 +55,7 @@ #include "grit/generated_resources.h" #include "grit/locale_settings.h" #include "grit/theme_resources.h" +#include "net/http/http_network_layer.h" #include "net/base/net_util.h" #include "net/url_request/url_request.h" #include "webkit/glue/webkit_glue.h" @@ -808,6 +809,10 @@ bool BrowserInit::ProcessCmdLineImpl(const CommandLine& command_line, profile, expected_tabs); } + if (command_line.HasSwitch(switches::kUseFlip)) { + net::HttpNetworkLayer::EnableFlip(true); + } + if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) { std::wstring allowed_ports = command_line.GetSwitchValue(switches::kExplicitlyAllowedPorts); |