GMC: Fix crash when updating icon
This CL modifies the MediaToolbarButtonView to check for a Widget before updating its icons. This prevents a crash where the button would try to read theme data from the Widget after it was gone. In addition, this CL changes the logic for updating the icon on enable/disable to only happen on Mac, since Mac is the only OS where the icon can change from enabling/disabling. Bug: 1006359 Change-Id: I009d5e5e921982be2628ce51f0488c463985dd58 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1815904Reviewed-by:Jazz Xu <jazzhsu@chromium.org> Commit-Queue: Tommy Steimel <steimel@chromium.org> Cr-Commit-Position: refs/heads/master@{#699062}
Showing
Please register or sign in to comment