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

Unified Diff: base/task_scheduler/task_scheduler.cc

Issue 2809163003: Always use TaskScheduler::InitParams to initialize a TaskScheduler. (Closed)
Patch Set: fix-build-error Created 3 years, 8 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 | « base/task_scheduler/task_scheduler.h ('k') | base/task_scheduler/task_scheduler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler.cc
diff --git a/base/task_scheduler/task_scheduler.cc b/base/task_scheduler/task_scheduler.cc
index 0e621f122263dfc2089363c36c03672d8cd83eaa..3c50d08cfdff14feb9b7321669ba0ec91705c577 100644
--- a/base/task_scheduler/task_scheduler.cc
+++ b/base/task_scheduler/task_scheduler.cc
@@ -6,7 +6,6 @@
#include <algorithm>
-#include "base/bind.h"
#include "base/logging.h"
#include "base/sys_info.h"
#include "base/task_scheduler/scheduler_worker_pool_params.h"
@@ -66,15 +65,6 @@ void TaskScheduler::CreateAndSetSimpleTaskScheduler(const std::string& name) {
}
#endif // !defined(OS_NACL)
-// static
-void TaskScheduler::CreateAndSetDefaultTaskScheduler(
- const std::vector<SchedulerWorkerPoolParams>& worker_pool_params_vector,
- const WorkerPoolIndexForTraitsCallback&
- worker_pool_index_for_traits_callback) {
- SetInstance(internal::TaskSchedulerImpl::Create(
- worker_pool_params_vector, worker_pool_index_for_traits_callback));
-}
-
void TaskScheduler::CreateAndSetDefaultTaskScheduler(
const std::string& name,
const InitParams& init_params) {
« no previous file with comments | « base/task_scheduler/task_scheduler.h ('k') | base/task_scheduler/task_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698