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

Side by Side Diff: components/task_scheduler_util/initialization_util.h

Issue 2506693002: Enable Initialization of the Task Scheduler by Default in the Browser Process (Closed)
Patch Set: CR Feedback + Centralization 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_ 5 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_
6 #define COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_ 6 #define COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_
7 7
8 #include <map>
9 #include <string>
10
11 namespace task_scheduler_util { 8 namespace task_scheduler_util {
12 9
13 // Calls base::TaskScheduler::CreateAndSetDefaultTaskScheduler with arguments 10 // Calls base::TaskScheduler::CreateAndSetDefaultTaskScheduler with arguments
14 // derived from |variation_params|. Returns false on failure. |variation_params| 11 // derived from the variations system.
fdoray 2016/11/16 19:23:59 , or default arguments if arguments are missing or
robliao 2016/11/16 19:42:56 Changed.
15 // is expected to come from the variations component and map a thread pool name 12 void InitializeDefaultBrowserTaskScheduler();
16 // to thread pool parameters.
17 bool InitializeDefaultTaskScheduler(
18 const std::map<std::string, std::string>& variation_params);
19 13
20 } // namespace task_scheduler_util 14 } // namespace task_scheduler_util
21 15
22 #endif // BASE_TASK_SCHEDULER_INITIALIZATION_UTIL_H_ 16 #endif // BASE_TASK_SCHEDULER_INITIALIZATION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698