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

Side by Side Diff: content/renderer/render_process.cc

Issue 2798623002: Use TaskScheduler::InitParams to initialize TaskScheduler in child processes. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_process.h ('k') | content/renderer/render_process_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include <utility> 5 #include <utility>
6 6
7 #include "content/renderer/render_process.h" 7 #include "content/renderer/render_process.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 RenderProcess::RenderProcess( 11 RenderProcess::RenderProcess(
12 const std::vector<base::SchedulerWorkerPoolParams>& worker_pool_params, 12 const std::string& task_scheduler_name,
13 base::TaskScheduler::WorkerPoolIndexForTraitsCallback 13 std::unique_ptr<base::TaskScheduler::InitParams> task_scheduler_init_params)
14 worker_pool_index_for_traits_callback)
15 : ChildProcess(base::ThreadPriority::NORMAL, 14 : ChildProcess(base::ThreadPriority::NORMAL,
16 worker_pool_params, 15 task_scheduler_name,
17 std::move(worker_pool_index_for_traits_callback)) {} 16 std::move(task_scheduler_init_params)) {}
18 17
19 } // namespace content 18 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_process.h ('k') | content/renderer/render_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698