Index: third_party/mojo/src/mojo/public/cpp/bindings/binding.h |
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/binding.h b/third_party/mojo/src/mojo/public/cpp/bindings/binding.h |
index db5e96d911336308ea05676cae5a93dec6da8f4e..a982bdbd4b10642837f8e1306253f0832f43e95b 100644 |
--- a/third_party/mojo/src/mojo/public/cpp/bindings/binding.h |
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/binding.h |
@@ -101,7 +101,7 @@ class Binding : public ErrorHandler { |
// implementation unbound. |
~Binding() override { |
if (internal_router_) { |
- DestroyRouter(); |
+ Close(); |
} |
} |
@@ -169,6 +169,8 @@ class Binding : public ErrorHandler { |
InterfaceRequest<Interface> request = |
MakeRequest<Interface>(internal_router_->PassMessagePipe()); |
DestroyRouter(); |
+ // TODO(vtl): The |.Pass()| below is only needed due to an MSVS bug; remove |
+ // it once that's fixed. |
return request.Pass(); |
} |