commit | 706ee6daa65a6d1b38af7864b5b136893fb3a348 | [log] [tgz] |
---|---|---|
author | Reilly Grant <reillyg@chromium.org> | Thu Apr 18 22:53:08 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Apr 18 22:53:08 2019 |
tree | 0b3a17888da42a8fd1835052c61a65330c207965 | |
parent | 7318c3d0bb4812240c2b71e9413f967900fce9c5 [diff] |
Notify of UsbService destruction as 1st step in destructor This change ensures that observers are notified that the UsbService is being destroyed as the very first step of the destructor, which unfortunately means that an explicit call needs to be added as the first line of every subclass destructor. This allows the DeviceManagerImpl instance in the device service to close all bindings before callbacks owned by the UsbService are destroyed. Otherwise these trigger a DCHECK. Bug: 953248 Change-Id: I0a05f29a6e759cb4340301b92f13ea90af76bcd6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574142 Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by: Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org> Cr-Commit-Position: refs/heads/master@{#652373}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .