Index: mojo/public/cpp/bindings/interface_request.h |
diff --git a/mojo/public/cpp/bindings/interface_request.h b/mojo/public/cpp/bindings/interface_request.h |
index 17233308beed01fb5fcad6242926b490900ceabe..0b89103edd80a56b95dff967b36e5b055e30681f 100644 |
--- a/mojo/public/cpp/bindings/interface_request.h |
+++ b/mojo/public/cpp/bindings/interface_request.h |
@@ -16,7 +16,12 @@ class InterfaceRequest { |
public: |
InterfaceRequest() {} |
+ InterfaceRequest(decltype(nullptr)) {} |
InterfaceRequest(InterfaceRequest&& other) { handle_ = other.handle_.Pass(); } |
+ InterfaceRequest& operator=(decltype(nullptr)) { |
+ handle_.reset(); |
+ return *this; |
+ } |
InterfaceRequest& operator=(InterfaceRequest&& other) { |
handle_ = other.handle_.Pass(); |
return *this; |