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

Unified Diff: chrome/browser/io_thread.cc

Issue 2912163002: Remove --host-resolver-retry-attempts. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 9a941068421bde291351efa486939dfaa7a84668..9dc05eebcca5258c7724ec8a9bf3a31be399d526 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -222,20 +222,6 @@ std::unique_ptr<net::HostResolver> CreateGlobalHostResolver(
*base::CommandLine::ForCurrentProcess();
net::HostResolver::Options options;
mmenke 2017/05/30 21:46:46 I'm leaving max_retry_attempts in options, though
-
- // 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;
#if defined OS_CHROMEOS
global_host_resolver =
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698