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

Unified Diff: chrome/app/mash/mash_runner.cc

Issue 2729523006: Remove the |max_threads| argument from CreateAndSetSimpleTaskScheduler(). (Closed)
Patch Set: self-review 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
Index: chrome/app/mash/mash_runner.cc
diff --git a/chrome/app/mash/mash_runner.cc b/chrome/app/mash/mash_runner.cc
index d5086ec61003d95db27dc5df9b8bf95cdd6fc551..1df776378f1dd3bc811a3344cf1a1a07e516c6b4 100644
--- a/chrome/app/mash/mash_runner.cc
+++ b/chrome/app/mash/mash_runner.cc
@@ -22,7 +22,6 @@
#include "base/process/launch.h"
#include "base/process/process.h"
#include "base/run_loop.h"
-#include "base/sys_info.h"
#include "base/task_scheduler/task_scheduler.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/thread.h"
@@ -150,8 +149,7 @@ MashRunner::MashRunner() {}
MashRunner::~MashRunner() {}
int MashRunner::Run() {
- base::TaskScheduler::CreateAndSetSimpleTaskScheduler(
- base::SysInfo::NumberOfProcessors());
+ base::TaskScheduler::CreateAndSetSimpleTaskScheduler("MashRunner");
if (IsChild())
return RunChild();

Powered by Google App Engine
This is Rietveld 408576698