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

Unified Diff: components/policy/core/common/cloud/external_policy_data_updater.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: rebase Created 3 years, 6 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
Index: components/policy/core/common/cloud/external_policy_data_updater.cc
diff --git a/components/policy/core/common/cloud/external_policy_data_updater.cc b/components/policy/core/common/cloud/external_policy_data_updater.cc
index 0a5c4cc5b959bd168295b477c4abe859fe9d4385..97324c54f7c5d3044f62d91b0de6fc2244d4c7d7 100644
--- a/components/policy/core/common/cloud/external_policy_data_updater.cc
+++ b/components/policy/core/common/cloud/external_policy_data_updater.cc
@@ -300,11 +300,11 @@ ExternalPolicyDataUpdater::ExternalPolicyDataUpdater(
max_parallel_jobs_(max_parallel_fetches),
running_jobs_(0),
shutting_down_(false) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
}
ExternalPolicyDataUpdater::~ExternalPolicyDataUpdater() {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
shutting_down_ = true;
}
@@ -312,7 +312,7 @@ void ExternalPolicyDataUpdater::FetchExternalData(
const std::string key,
const Request& request,
const FetchSuccessCallback& callback) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
// Check whether a job exists for this |key| already.
FetchJob* job = job_map_[key].get();
@@ -336,7 +336,7 @@ void ExternalPolicyDataUpdater::FetchExternalData(
void ExternalPolicyDataUpdater::CancelExternalDataFetch(
const std::string& key) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
// If a |job| exists for this |key|, delete it. If the |job| is on the queue,
// its WeakPtr will be invalidated and skipped by StartNextJobs(). If |job| is

Powered by Google App Engine
This is Rietveld 408576698