diff --git a/src/net/tools/naive/naive_proxy.cc b/src/net/tools/naive/naive_proxy.cc index b4d5feee68..a38f791249 100644 --- a/src/net/tools/naive/naive_proxy.cc +++ b/src/net/tools/naive/naive_proxy.cc @@ -5,7 +5,6 @@ #include "net/tools/naive/naive_proxy.h" -#include #include #include "base/bind.h" @@ -35,7 +34,7 @@ NaiveProxy::NaiveProxy(std::unique_ptr listen_socket, const NetworkTrafficAnnotationTag& traffic_annotation) : listen_socket_(std::move(listen_socket)), protocol_(protocol), - concurrency_(std::min(4, std::max(1, concurrency))), + concurrency_(concurrency), resolver_(resolver), session_(session), net_log_( diff --git a/src/net/tools/naive/naive_proxy_bin.cc b/src/net/tools/naive/naive_proxy_bin.cc index 4ba08712dd..00acd7756b 100644 --- a/src/net/tools/naive/naive_proxy_bin.cc +++ b/src/net/tools/naive/naive_proxy_bin.cc @@ -289,7 +289,7 @@ bool ParseCommandLine(const CommandLine& cmdline, Params* params) { if (!cmdline.concurrency.empty()) { if (!base::StringToInt(cmdline.concurrency, ¶ms->concurrency) || - params->concurrency < 1 || params->concurrency > 4) { + params->concurrency < 1) { std::cerr << "Invalid concurrency" << std::endl; return false; }