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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2749303002: [reference - do not submit] Always create four pools in TaskSchedulerImpl. (Closed)
Patch Set: rebase Created 3 years, 9 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') | chrome/renderer/chrome_content_renderer_client.h » ('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 528148a032ee5109502e4ad58487fa4e8fd40dfc..7f7f75b723642e43b069c7bed152f16641be1989 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -3535,17 +3535,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::TaskSchedulerInitParams>
+ChromeContentBrowserClient::GetTaskSchedulerInitParams() {
+ return task_scheduler_util::GetBrowserTaskSchedulerInitParamsFromVariations();
}
void ChromeContentBrowserClient::
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/renderer/chrome_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698