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

Unified Diff: services/service_manager/public/cpp/service_context_ref.cc

Issue 2960373002: Rename TaskRunner::RunsTasksOnCurrentThread() in //service, //components (Closed)
Patch Set: 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
« no previous file with comments | « services/service_manager/embedder/embedded_service_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/public/cpp/service_context_ref.cc
diff --git a/services/service_manager/public/cpp/service_context_ref.cc b/services/service_manager/public/cpp/service_context_ref.cc
index cf28aeb72c4c0ecd453ed92b6faa6503f7d07880..7df2bbcee83ea42bc53abd5e41c457e2c9696f62 100644
--- a/services/service_manager/public/cpp/service_context_ref.cc
+++ b/services/service_manager/public/cpp/service_context_ref.cc
@@ -27,7 +27,7 @@ class ServiceContextRefImpl : public ServiceContextRef {
~ServiceContextRefImpl() override {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
- if (service_task_runner_->RunsTasksOnCurrentThread() && factory_) {
+ if (service_task_runner_->RunsTasksInCurrentSequence() && factory_) {
factory_->Release();
} else {
service_task_runner_->PostTask(
@@ -40,7 +40,7 @@ class ServiceContextRefImpl : public ServiceContextRef {
std::unique_ptr<ServiceContextRef> Clone() override {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
- if (service_task_runner_->RunsTasksOnCurrentThread() && factory_) {
+ if (service_task_runner_->RunsTasksInCurrentSequence() && factory_) {
factory_->AddRef();
} else {
service_task_runner_->PostTask(
« no previous file with comments | « services/service_manager/embedder/embedded_service_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698