Index: chrome/browser/browser_main.cc |
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc |
index 1853af747221330fc1ed9e8f1f31109e8f161e24..2a80d3cae3fcd6dc888df86d93c9ebe34ea57728 100644 |
--- a/chrome/browser/browser_main.cc |
+++ b/chrome/browser/browser_main.cc |
@@ -103,6 +103,7 @@ |
#include "net/base/network_change_notifier.h" |
#include "net/http/http_network_layer.h" |
#include "net/http/http_stream_factory.h" |
+#include "net/proxy/dhcp_proxy_script_fetcher_factory.h" |
#include "net/socket/client_socket_pool_base.h" |
#include "net/socket/client_socket_pool_manager.h" |
#include "net/socket/tcp_client_socket.h" |
@@ -624,6 +625,9 @@ void InitializeNetworkOptions(const CommandLine& parsed_command_line) { |
net::HttpStreamFactory::SetHostMappingRules( |
parsed_command_line.GetSwitchValueASCII(switches::kHostRules)); |
+ if (parsed_command_line.HasSwitch(switches::kEnableDhcpPac)) |
+ net::DhcpProxyScriptFetcherFactory::GetInstance()->SetEnabled(true); |
+ |
if (parsed_command_line.HasSwitch(switches::kEnableIPPooling)) |
net::SpdySessionPool::enable_ip_pooling(true); |