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

Unified Diff: mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc

Issue 2958703002: Rename TaskRunner::RunsTasksOnCurrentThread() in //ipc, //mojo (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
Index: mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
diff --git a/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc b/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
index 2f33cb2a7fbfd3f139c21bdd35e911a3290994be..d987cf0de30db69d30cb086fce08401b64582087 100644
--- a/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
+++ b/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
@@ -192,7 +192,7 @@ class ScopedInterfaceEndpointHandle::State
group_controller_ = std::move(group_controller);
if (!association_event_handler_.is_null()) {
- if (runner_->RunsTasksOnCurrentThread()) {
+ if (runner_->RunsTasksInCurrentSequence()) {
handler = std::move(association_event_handler_);
runner_ = nullptr;
} else {
@@ -228,7 +228,7 @@ class ScopedInterfaceEndpointHandle::State
peer_state_ = nullptr;
if (!association_event_handler_.is_null()) {
- if (runner_->RunsTasksOnCurrentThread()) {
+ if (runner_->RunsTasksInCurrentSequence()) {
handler = std::move(association_event_handler_);
runner_ = nullptr;
} else {
« no previous file with comments | « mojo/public/cpp/bindings/lib/multiplex_router.cc ('k') | mojo/public/cpp/bindings/tests/associated_interface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698