| Index: mojo/public/cpp/bindings/lib/binding_state.h | 
| diff --git a/mojo/public/cpp/bindings/lib/binding_state.h b/mojo/public/cpp/bindings/lib/binding_state.h | 
| index 838939353a133929e74adc12d6db07c1d3decdbe..3abe39a756cac83d69471fac8cbe8a94a1531168 100644 | 
| --- a/mojo/public/cpp/bindings/lib/binding_state.h | 
| +++ b/mojo/public/cpp/bindings/lib/binding_state.h | 
| @@ -50,15 +50,16 @@ class MOJO_CPP_BINDINGS_EXPORT BindingStateBase { | 
| void Close(); | 
| void CloseWithReason(uint32_t custom_reason, const std::string& description); | 
|  | 
| -  void set_connection_error_handler(const base::Closure& error_handler) { | 
| +  void set_connection_error_handler(base::OnceClosure error_handler) { | 
| DCHECK(is_bound()); | 
| -    endpoint_client_->set_connection_error_handler(error_handler); | 
| +    endpoint_client_->set_connection_error_handler(std::move(error_handler)); | 
| } | 
|  | 
| void set_connection_error_with_reason_handler( | 
| -      const ConnectionErrorWithReasonCallback& error_handler) { | 
| +      ConnectionErrorWithReasonCallback error_handler) { | 
| DCHECK(is_bound()); | 
| -    endpoint_client_->set_connection_error_with_reason_handler(error_handler); | 
| +    endpoint_client_->set_connection_error_with_reason_handler( | 
| +        std::move(error_handler)); | 
| } | 
|  | 
| bool is_bound() const { return !!router_; } | 
|  |