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

Unified Diff: components/keyed_service/core/refcounted_keyed_service.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: 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
Index: components/keyed_service/core/refcounted_keyed_service.cc
diff --git a/components/keyed_service/core/refcounted_keyed_service.cc b/components/keyed_service/core/refcounted_keyed_service.cc
index 04a1ea572889ff96ffff4721e8e794a5369efdf5..e6c449fe587ea5ccf3a865f72c075da9f45f454c 100644
--- a/components/keyed_service/core/refcounted_keyed_service.cc
+++ b/components/keyed_service/core/refcounted_keyed_service.cc
@@ -10,7 +10,7 @@ namespace impl {
// static
void RefcountedKeyedServiceTraits::Destruct(const RefcountedKeyedService* obj) {
- if (obj->task_runner_ && !obj->task_runner_->RunsTasksOnCurrentThread()) {
+ if (obj->task_runner_ && !obj->task_runner_->RunsTasksInCurrentSequence()) {
obj->task_runner_->DeleteSoon(FROM_HERE, obj);
} else {
delete obj;

Powered by Google App Engine
This is Rietveld 408576698