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

Unified Diff: chrome/browser/browser_main.cc

Issue 6831025: Adds support for the DHCP portion of the WPAD (proxy auto-discovery) protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix issue found by unit testing on a slow machine. Created 9 years, 8 months 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 | « no previous file | chrome/common/chrome_switches.h » ('j') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 1f59543be950a93eba76cacf8a5b0bd72ab566fa..944cc94084a6a8e69bb40b286a1ce0e8bd3c2b5d 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);
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698