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

Unified Diff: ios/chrome/browser/web/chrome_web_client.mm

Issue 2797803002: Use TaskScheduler::InitParams to initialize TaskScheduler in web_main_loop.mm. (Closed)
Patch Set: fix-build-error 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 | « ios/chrome/browser/web/chrome_web_client.h ('k') | ios/web/app/web_main_loop.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/chrome_web_client.mm
diff --git a/ios/chrome/browser/web/chrome_web_client.mm b/ios/chrome/browser/web/chrome_web_client.mm
index 25739254c3830d4a7482c3f1450728d6f1338c3c..2fe4de957e7d9dec9f1b2594b6594dfeb0a74852 100644
--- a/ios/chrome/browser/web/chrome_web_client.mm
+++ b/ios/chrome/browser/web/chrome_web_client.mm
@@ -171,17 +171,9 @@ void ChromeWebClient::AllowCertificateError(
overridable, callback);
}
-void ChromeWebClient::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, web 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>
+ChromeWebClient::GetTaskSchedulerInitParams() {
+ return task_scheduler_util::GetBrowserTaskSchedulerInitParamsFromVariations();
}
void ChromeWebClient::PerformExperimentalTaskSchedulerRedirections() {
« no previous file with comments | « ios/chrome/browser/web/chrome_web_client.h ('k') | ios/web/app/web_main_loop.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698