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

Unified Diff: ios/chrome/browser/component_updater/ios_component_updater_configurator.cc

Issue 2875423002: Use TaskScheduler instead of SequencedWorkerPool in ios_component_updater_configurator.cc. (Closed)
Patch Set: rebase Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/component_updater/ios_component_updater_configurator.cc
diff --git a/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc b/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc
index 55bb8f5ea1e0710ed1d2cfa12f40b6cf62e840a2..a441b5f58667fdbeaf43b7ea7a1014dad3fc1320 100644
--- a/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc
+++ b/ios/chrome/browser/component_updater/ios_component_updater_configurator.cc
@@ -7,8 +7,7 @@
#include <string>
#include <vector>
-#include "base/sequenced_task_runner.h"
-#include "base/threading/sequenced_worker_pool.h"
+#include "base/task_scheduler/post_task.h"
#include "base/version.h"
#include "components/component_updater/configurator_impl.h"
#include "components/update_client/out_of_process_patcher.h"
@@ -16,7 +15,6 @@
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/google/google_brand.h"
#include "ios/chrome/common/channel_info.h"
-#include "ios/web/public/web_thread.h"
namespace component_updater {
@@ -156,10 +154,9 @@ bool IOSConfigurator::EnabledCupSigning() const {
scoped_refptr<base::SequencedTaskRunner>
IOSConfigurator::GetSequencedTaskRunner() const {
- return web::WebThread::GetBlockingPool()
- ->GetSequencedTaskRunnerWithShutdownBehavior(
- web::WebThread::GetBlockingPool()->GetSequenceToken(),
- base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
+ return base::CreateSequencedTaskRunnerWithTraits(
+ {base::MayBlock(), base::TaskPriority::BACKGROUND,
+ base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN});
}
PrefService* IOSConfigurator::GetPrefService() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698