Use ScopedObserver in TrayWidgetObserver
ScopedObserver makes sure that the observers are always removed on destruction. Found while running tests and adding a CHECK to the destructor to see if it is still inany observer list. Bug: 1055483 Change-Id: Ia230170ac17a558ec9257df15fa115b2e83d6dcb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2257423Reviewed-by:Tim Song <tengs@chromium.org> Commit-Queue: Richard Knoll <knollr@chromium.org> Cr-Commit-Position: refs/heads/master@{#781529}
Showing
Please register or sign in to comment