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

Unified Diff: content/child/child_process.cc

Issue 2729523006: Remove the |max_threads| argument from CreateAndSetSimpleTaskScheduler(). (Closed)
Patch Set: fix build error Created 3 years, 9 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 | « components/cronet/ios/cronet_environment.mm ('k') | remoting/client/chromoting_client_runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_process.cc
diff --git a/content/child/child_process.cc b/content/child/child_process.cc
index 6d713f497816d42b672fe70a18b9ec5897ca89d8..380e3176b1c148e24cc9c3195287e852fbbec47d 100644
--- a/content/child/child_process.cc
+++ b/content/child/child_process.cc
@@ -55,8 +55,7 @@ ChildProcess::ChildProcess(
if (!base::TaskScheduler::GetInstance()) {
if (worker_pool_params.empty()) {
DCHECK(!worker_pool_index_for_traits_callback);
- constexpr int kMaxThreads = 2;
- base::TaskScheduler::CreateAndSetSimpleTaskScheduler(kMaxThreads);
+ base::TaskScheduler::CreateAndSetSimpleTaskScheduler("ContentChild");
} else {
DCHECK(worker_pool_index_for_traits_callback);
base::TaskScheduler::CreateAndSetDefaultTaskScheduler(
« no previous file with comments | « components/cronet/ios/cronet_environment.mm ('k') | remoting/client/chromoting_client_runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698