| Index: mojo/common/weak_binding_set.h
|
| diff --git a/mojo/common/weak_binding_set.h b/mojo/common/weak_binding_set.h
|
| index 66a90b1da135d4cd1f408f6755fc519c374a4810..a94e8f4adb05570607647543a39ab10344ccb334 100644
|
| --- a/mojo/common/weak_binding_set.h
|
| +++ b/mojo/common/weak_binding_set.h
|
| @@ -28,17 +28,6 @@ class WeakBindingSet {
|
| error_handler_ = error_handler;
|
| }
|
|
|
| - // NOTE: Deprecated. Please use the method above.
|
| - // TODO(yzshen): Remove this method once all callsites are converted.
|
| - void set_error_handler(ErrorHandler* error_handler) {
|
| - if (error_handler) {
|
| - set_connection_error_handler(
|
| - [error_handler]() { error_handler->OnConnectionError(); });
|
| - } else {
|
| - set_connection_error_handler(Closure());
|
| - }
|
| - }
|
| -
|
| void AddBinding(Interface* impl, InterfaceRequest<Interface> request) {
|
| auto binding = new WeakBinding<Interface>(impl, request.Pass());
|
| binding->set_connection_error_handler([this]() { OnConnectionError(); });
|
|
|