| Index: mojo/public/cpp/bindings/lib/interface_ptr_state.h
|
| diff --git a/mojo/public/cpp/bindings/lib/interface_ptr_state.h b/mojo/public/cpp/bindings/lib/interface_ptr_state.h
|
| index fa54979795567b7ef48f78a8e43387a362334563..ddfe78527a1a0ed497e12dd2124b2b869879077d 100644
|
| --- a/mojo/public/cpp/bindings/lib/interface_ptr_state.h
|
| +++ b/mojo/public/cpp/bindings/lib/interface_ptr_state.h
|
| @@ -125,19 +125,20 @@ class InterfacePtrState {
|
| return endpoint_client_ ? endpoint_client_->encountered_error() : false;
|
| }
|
|
|
| - void set_connection_error_handler(const base::Closure& error_handler) {
|
| + void set_connection_error_handler(base::OnceClosure error_handler) {
|
| ConfigureProxyIfNecessary();
|
|
|
| DCHECK(endpoint_client_);
|
| - 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) {
|
| ConfigureProxyIfNecessary();
|
|
|
| DCHECK(endpoint_client_);
|
| - endpoint_client_->set_connection_error_with_reason_handler(error_handler);
|
| + endpoint_client_->set_connection_error_with_reason_handler(
|
| + std::move(error_handler));
|
| }
|
|
|
| // Returns true if bound and awaiting a response to a message.
|
|
|