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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2799433002: Use TaskScheduler::InitParams to initialize TaskScheduler in browser process. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 4e67512d7f4ef0d0ab296883b9d331405cad64fd..10b33bc2cea4cb77234ae55d7ba4d1e369a859b7 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -3581,17 +3581,9 @@ void ChromeContentBrowserClient::CreateMediaRemoter(
}
#endif // BUILDFLAG(ENABLE_MEDIA_REMOTING)
-void ChromeContentBrowserClient::GetTaskSchedulerInitializationParams(
- std::vector<base::SchedulerWorkerPoolParams>* params_vector,
- base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
- index_to_traits_callback) {
- DCHECK(params_vector);
- DCHECK(index_to_traits_callback);
- // If this call fails, content will fall back to the default params.
- *params_vector =
- task_scheduler_util::GetBrowserWorkerPoolParamsFromVariations();
- *index_to_traits_callback =
- base::Bind(&task_scheduler_util::BrowserWorkerPoolIndexForTraits);
+std::unique_ptr<base::TaskScheduler::InitParams>
+ChromeContentBrowserClient::GetTaskSchedulerInitParams() {
+ return task_scheduler_util::GetBrowserTaskSchedulerInitParamsFromVariations();
}
void ChromeContentBrowserClient::
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698