| Index: mojo/public/cpp/bindings/lib/message.cc
|
| diff --git a/mojo/public/cpp/bindings/lib/message.cc b/mojo/public/cpp/bindings/lib/message.cc
|
| index 7da4a97b835dc75b6effb1fe21fb2453d945c0db..be19cf371fc06adb27185c46654be9f56277eecb 100644
|
| --- a/mojo/public/cpp/bindings/lib/message.cc
|
| +++ b/mojo/public/cpp/bindings/lib/message.cc
|
| @@ -180,10 +180,9 @@ void Message::SerializeAssociatedEndpointHandles(
|
| for (size_t i = 0; i < size; ++i) {
|
| ScopedInterfaceEndpointHandle& handle = associated_endpoint_handles_[i];
|
|
|
| - DCHECK(handle.is_valid());
|
| - DCHECK(!handle.is_local());
|
| - DCHECK_EQ(group_controller, handle.group_controller());
|
| - data->storage()[i] = handle.release();
|
| + DCHECK(handle.pending_association());
|
| + data->storage()[i] =
|
| + group_controller->AssociateInterface(std::move(handle));
|
| }
|
| associated_endpoint_handles_.clear();
|
| }
|
|
|