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

Unified Diff: services/service_manager/standalone/context.cc

Issue 2525073002: Initialize TaskScheduler in Mash. (Closed)
Patch Set: shared constant for max num threads Created 4 years, 1 month 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 | « services/service_manager/standalone/context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/standalone/context.cc
diff --git a/services/service_manager/standalone/context.cc b/services/service_manager/standalone/context.cc
index 93a48f5faca52121521ea93769aaff3e3b2dbd90..7af84b44c57866717baf3bcf9d689090357d2ffa 100644
--- a/services/service_manager/standalone/context.cc
+++ b/services/service_manager/standalone/context.cc
@@ -74,8 +74,6 @@ class Setup {
DISALLOW_COPY_AND_ASSIGN(Setup);
};
-const size_t kMaxBlockingPoolThreads = 3;
-
std::unique_ptr<base::Thread> CreateIOThread(const char* name) {
std::unique_ptr<base::Thread> thread(new base::Thread(name));
base::Thread::Options options;
@@ -128,9 +126,8 @@ void Context::Init(std::unique_ptr<InitParams> init_params) {
EnsureEmbedderIsInitialized();
service_manager_runner_ = base::ThreadTaskRunnerHandle::Get();
- blocking_pool_ =
- new base::SequencedWorkerPool(kMaxBlockingPoolThreads, "blocking_pool",
- base::TaskPriority::USER_VISIBLE);
+ blocking_pool_ = new base::SequencedWorkerPool(
+ kThreadPoolMaxThreads, "blocking_pool", base::TaskPriority::USER_VISIBLE);
init_edk_ = !init_params || init_params->init_edk;
if (init_edk_) {
« no previous file with comments | « services/service_manager/standalone/context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698