| 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 2cab771dcbe9857263ba97ea71a87b5e9eea2297..ed44d5cb8b46015c88c237b0e2de472d20d43ce2 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -142,6 +142,8 @@
|
| #include "components/signin/core/common/profile_management_switches.h"
|
| #include "components/spellcheck/spellcheck_build_features.h"
|
| #include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
|
| +#include "components/task_scheduler_util/initialization/browser_util.h"
|
| +#include "components/task_scheduler_util/variations/browser_variations_util.h"
|
| #include "components/translate/core/common/translate_switches.h"
|
| #include "components/url_formatter/url_fixer.h"
|
| #include "components/variations/variations_associated_data.h"
|
| @@ -3321,3 +3323,26 @@ void ChromeContentBrowserClient::CreateMediaRemoter(
|
| #endif
|
| }
|
| #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);
|
| + *params_vector =
|
| + task_scheduler_util::variations::
|
| + GetBrowserSchedulerWorkerPoolParamsFromVariations();
|
| + if (params_vector->empty()) {
|
| + ContentBrowserClient::GetTaskSchedulerInitializationParams(
|
| + params_vector, index_to_traits_callback);
|
| + return;
|
| + }
|
| + *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization::
|
| + BrowserWorkerPoolIndexForTraits);
|
| +}
|
| +
|
| +void ChromeContentBrowserClient::PerformRedirectionToTaskScheduler() {
|
| + task_scheduler_util::variations::
|
| + MaybePerformBrowserTaskSchedulerRedirection();
|
| +}
|
|
|