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

Side by Side Diff: chrome/browser/net/connection_tester.cc

Issue 7204024: Revert 89629 - Revert 89486 - Revert 87047 - Revert 86422 - Make DHCP WPAD on by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/net/proxy_service_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/net/connection_tester.h" 5 #include "chrome/browser/net/connection_tester.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 if (CommandLine::ForCurrentProcess()->HasSwitch( 181 if (CommandLine::ForCurrentProcess()->HasSwitch(
182 switches::kSingleProcess)) { 182 switches::kSingleProcess)) {
183 // We can't create a standard proxy resolver in single-process mode. 183 // We can't create a standard proxy resolver in single-process mode.
184 // Rather than falling-back to some other implementation, fail. 184 // Rather than falling-back to some other implementation, fail.
185 return net::ERR_NOT_IMPLEMENTED; 185 return net::ERR_NOT_IMPLEMENTED;
186 } 186 }
187 187
188 net::DhcpProxyScriptFetcherFactory dhcp_factory; 188 net::DhcpProxyScriptFetcherFactory dhcp_factory;
189 if (CommandLine::ForCurrentProcess()->HasSwitch( 189 if (CommandLine::ForCurrentProcess()->HasSwitch(
190 switches::kEnableDhcpWpad)) { 190 switches::kDisableDhcpWpad)) {
191 dhcp_factory.set_enabled(true); 191 dhcp_factory.set_enabled(false);
192 } 192 }
193 193
194 proxy_service->reset(net::ProxyService::CreateUsingV8ProxyResolver( 194 proxy_service->reset(net::ProxyService::CreateUsingV8ProxyResolver(
195 config_service.release(), 195 config_service.release(),
196 0u, 196 0u,
197 new net::ProxyScriptFetcherImpl(proxy_request_context_), 197 new net::ProxyScriptFetcherImpl(proxy_request_context_),
198 dhcp_factory.Create(proxy_request_context_), 198 dhcp_factory.Create(proxy_request_context_),
199 host_resolver(), 199 host_resolver(),
200 NULL, 200 NULL,
201 NULL)); 201 NULL));
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 460
461 // Notify the delegate of completion. 461 // Notify the delegate of completion.
462 delegate_->OnCompletedConnectionTestExperiment(current, result); 462 delegate_->OnCompletedConnectionTestExperiment(current, result);
463 463
464 if (remaining_experiments_.empty()) { 464 if (remaining_experiments_.empty()) {
465 delegate_->OnCompletedConnectionTestSuite(); 465 delegate_->OnCompletedConnectionTestSuite();
466 } else { 466 } else {
467 StartNextExperiment(); 467 StartNextExperiment();
468 } 468 }
469 } 469 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/proxy_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698