Commit 9a6e17b8 authored by mmenke's avatar mmenke Committed by Commit Bot

Remove --host-resolver-retry-attempts.

This doesn't seem to have seen a whole lot of use.

BUG=727894

Review-Url: https://codereview.chromium.org/2912163002
Cr-Commit-Position: refs/heads/master@{#475704}
parent 12b75fd5
...@@ -222,20 +222,6 @@ std::unique_ptr<net::HostResolver> CreateGlobalHostResolver( ...@@ -222,20 +222,6 @@ std::unique_ptr<net::HostResolver> CreateGlobalHostResolver(
*base::CommandLine::ForCurrentProcess(); *base::CommandLine::ForCurrentProcess();
net::HostResolver::Options options; net::HostResolver::Options options;
// Use the retry attempts override from the command-line, if any.
if (command_line.HasSwitch(switches::kHostResolverRetryAttempts)) {
std::string s =
command_line.GetSwitchValueASCII(switches::kHostResolverRetryAttempts);
// Parse the switch (it should be a non-negative integer).
int n;
if (base::StringToInt(s, &n) && n >= 0) {
options.max_retry_attempts = static_cast<size_t>(n);
} else {
LOG(ERROR) << "Invalid switch for host resolver retry attempts: " << s;
}
}
std::unique_ptr<net::HostResolver> global_host_resolver; std::unique_ptr<net::HostResolver> global_host_resolver;
#if defined OS_CHROMEOS #if defined OS_CHROMEOS
global_host_resolver = global_host_resolver =
......
...@@ -507,10 +507,6 @@ const char kForceVariationIds[] = "force-variation-ids"; ...@@ -507,10 +507,6 @@ const char kForceVariationIds[] = "force-variation-ids";
// http://google.com. // http://google.com.
const char kHomePage[] = "homepage"; const char kHomePage[] = "homepage";
// The maximum number of retry attempts to resolve the host. Set this to zero
// to disable host resolver retry attempts.
const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts";
// Comma-separated list of rules that control how hostnames are mapped. // Comma-separated list of rules that control how hostnames are mapped.
// //
// For example: // For example:
......
...@@ -156,7 +156,6 @@ extern const char kForceFirstRun[]; ...@@ -156,7 +156,6 @@ extern const char kForceFirstRun[];
extern const char kForceLocalNtp[]; extern const char kForceLocalNtp[];
extern const char kForceVariationIds[]; extern const char kForceVariationIds[];
extern const char kHomePage[]; extern const char kHomePage[];
extern const char kHostResolverRetryAttempts[];
extern const char kHostRules[]; extern const char kHostRules[];
extern const char kIgnoreCertificateErrorsSPKIList[]; extern const char kIgnoreCertificateErrorsSPKIList[];
extern const char kIgnoreUrlFetcherCertRequests[]; extern const char kIgnoreUrlFetcherCertRequests[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment