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

Unified Diff: components/task_scheduler_util/initialization_util.cc

Issue 2570693003: Move Task Scheduler Initialization From ios/chrome/browser to Web (Closed)
Patch Set: Merge Fixes Created 4 years 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 | « components/task_scheduler_util/initialization_util.h ('k') | ios/chrome/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/task_scheduler_util/initialization_util.cc
diff --git a/components/task_scheduler_util/initialization_util.cc b/components/task_scheduler_util/initialization_util.cc
deleted file mode 100644
index 1a2d11f47df182f1e9e86e47208a554bc008530d..0000000000000000000000000000000000000000
--- a/components/task_scheduler_util/initialization_util.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/task_scheduler_util/initialization_util.h"
-
-#include <vector>
-
-#include "base/bind.h"
-#include "base/task_scheduler/scheduler_worker_pool_params.h"
-#include "base/task_scheduler/task_scheduler.h"
-#include "components/task_scheduler_util/initialization/browser_util.h"
-#include "components/task_scheduler_util/variations/browser_variations_util.h"
-
-namespace task_scheduler_util {
-
-#if defined(OS_IOS)
-void InitializeDefaultBrowserTaskScheduler() {
- std::vector<base::SchedulerWorkerPoolParams> params_vector =
- variations::GetBrowserSchedulerWorkerPoolParamsFromVariations();
- if (params_vector.empty()) {
- params_vector =
- initialization::GetDefaultBrowserSchedulerWorkerPoolParams();
- }
-
- base::TaskScheduler::CreateAndSetDefaultTaskScheduler(
- params_vector,
- base::Bind(&initialization::BrowserWorkerPoolIndexForTraits));
- task_scheduler_util::variations::
- MaybePerformBrowserTaskSchedulerRedirection();
-}
-#endif // defined(OS_IOS)
-
-} // namespace task_scheduler_util
« no previous file with comments | « components/task_scheduler_util/initialization_util.h ('k') | ios/chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698