Remove pre-finalizer from from Scrollbar.
The pre-finalizer was used to unregister the Scrollbar from the theme. The only implementation of the UnregisterScrollbar method that did anything was that of ScrollbarThemeMac, which removed the scrollbar from a HashSet and a HashMap. Both data-structures actually held weak members, so the gc can automatically remove the ScrollBar from the data-structures and the pre-finalizer is not needed. The method UnregisterScrollbar was only called from the pre-finalizer, so I removed it as well. Bug: 981414 Change-Id: Ief15a9df658a12568de9fabdabd2950419835b56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1720774Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Omer Katz <omerkatz@chromium.org> Cr-Commit-Position: refs/heads/master@{#681731}
Showing
Please register or sign in to comment