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

Unified Diff: chrome/browser/net/connection_tester.cc

Issue 7011044: Add a command line option to turn off retry attempts to resolve host (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
Index: chrome/browser/net/connection_tester.cc
===================================================================
--- chrome/browser/net/connection_tester.cc (revision 85450)
+++ chrome/browser/net/connection_tester.cc (working copy)
@@ -107,8 +107,10 @@
scoped_ptr<net::HostResolver>* host_resolver) {
// Create a vanilla HostResolver that disables caching.
const size_t kMaxJobs = 50u;
+ const size_t kMaxRetryAttempts = 4u;
net::HostResolverImpl* impl =
- new net::HostResolverImpl(NULL, NULL, kMaxJobs, NULL);
+ new net::HostResolverImpl(NULL, NULL, kMaxJobs, kMaxRetryAttempts,
+ NULL);
host_resolver->reset(impl);

Powered by Google App Engine
This is Rietveld 408576698