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

Side by Side Diff: components/task_scheduler_util/initialization/browser_util.cc

Issue 2626783002: Remove old APIs from components/task_scheduler_util/. (Closed)
Patch Set: fix build error Created 3 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // TODO(fdoray): Remove this file once TaskScheduler initialization in the
6 // browser process uses the components/task_scheduler_util/browser/ API on all
7 // platforms.
8
9 #include "components/task_scheduler_util/initialization/browser_util.h"
10
11 #include "components/task_scheduler_util/browser/initialization.h"
12
13 namespace task_scheduler_util {
14 namespace initialization {
15
16 // Returns the worker pool index for |traits| defaulting to FOREGROUND or
17 // FOREGROUND_FILE_IO on any priorities other than background.
18 size_t BrowserWorkerPoolIndexForTraits(const base::TaskTraits& traits) {
19 return ::task_scheduler_util::BrowserWorkerPoolIndexForTraits(traits);
20 }
21
22 } // namespace initialization
23 } // namespace task_scheduler_util
OLDNEW
« no previous file with comments | « components/task_scheduler_util/initialization/browser_util.h ('k') | components/task_scheduler_util/variations/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698