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

Unified Diff: tools/android/forwarder2/self_deleter_helper.h

Issue 2881383003: Rename TaskRunner::RunsTasksOnCurrentThread() in //android_webview, //tools (Closed)
Patch Set: add //tools/android 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 | « tools/android/forwarder2/host_controllers_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/self_deleter_helper.h
diff --git a/tools/android/forwarder2/self_deleter_helper.h b/tools/android/forwarder2/self_deleter_helper.h
index 582f87b255d5281698586dfe455ae027f266fcf0..b9ccc33726aa46f4e2cbd0b25557f59478f2ca28 100644
--- a/tools/android/forwarder2/self_deleter_helper.h
+++ b/tools/android/forwarder2/self_deleter_helper.h
@@ -107,11 +107,11 @@ class SelfDeleterHelper {
weak_ptr_factory_(this) {}
~SelfDeleterHelper() {
- DCHECK(construction_runner_->RunsTasksOnCurrentThread());
+ DCHECK(construction_runner_->RunsTasksInCurrentSequence());
}
void MaybeSelfDeleteSoon() {
- DCHECK(!construction_runner_->RunsTasksOnCurrentThread());
+ DCHECK(!construction_runner_->RunsTasksInCurrentSequence());
construction_runner_->PostTask(
FROM_HERE,
base::Bind(&SelfDeleterHelper::SelfDelete,
@@ -120,7 +120,7 @@ class SelfDeleterHelper {
private:
void SelfDelete() {
- DCHECK(construction_runner_->RunsTasksOnCurrentThread());
+ DCHECK(construction_runner_->RunsTasksInCurrentSequence());
deletion_callback_.Run(base::WrapUnique(self_deleting_object_));
}
« no previous file with comments | « tools/android/forwarder2/host_controllers_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698