| 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 {
|
|
|