| Index: device/usb/mojo/device_impl.cc
|
| diff --git a/device/usb/mojo/device_impl.cc b/device/usb/mojo/device_impl.cc
|
| index dddf6815230d36c53aa83eff063d45a773f76c15..611ac096579550b0479ea1582613c95e32a2cc39 100644
|
| --- a/device/usb/mojo/device_impl.cc
|
| +++ b/device/usb/mojo/device_impl.cc
|
| @@ -138,9 +138,9 @@ DeviceImpl::DeviceImpl(scoped_refptr<UsbDevice> device,
|
| DCHECK(device_);
|
| // This object owns itself and will be destroyed if,
|
| // * the device is disconnected or
|
| - // * the message pipe it is bound to is closed
|
| + // * the message pipe it is bound to is closed or the message loop is
|
| + // * destructed.
|
| observer_.Add(device_.get());
|
| - binding_.set_connection_error_handler([this]() { delete this; });
|
| }
|
|
|
| DeviceImpl::~DeviceImpl() {
|
|
|