commit | d979040eec7b2adb42872836db75551bc75d436a | [log] [tgz] |
---|---|---|
author | Sammie Quon <sammiequon@chromium.org> | Tue Mar 22 02:27:29 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 22 02:27:29 2022 |
tree | 497b02ee417c0748bf883f835636e5dfb82e8508 | |
parent | b0d9e4ce53069857d7dc098c734fcb1d7ca22458 [diff] |
desk_templates: Fix issue with previews no updating after launch. This is a reland of https://chromium-review.googlesource.com/c/chromium/src/+/3511048. The original CL caused to many updates due to `OnWindowVisibilityChanged` firing for any window visible change in the tree. This CL reduces the amount of calls by checking a lot more conditions. There was also a crash that was caused by the original CL that happens because creating the DeskPreviewView would cause a visibility change. The extra conditions stops us from reaching this crash, but adds a DCHECK so a future stack trace gives more accurate information. Test: manual Bug: 1301763, 1307864 Change-Id: I0bbbad52e8ba5f26e5dd5e36e84d971d3906ccf2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3540618 Reviewed-by: Ahmed Fakhry <afakhry@chromium.org> Commit-Queue: Sammie Quon <sammiequon@chromium.org> Cr-Commit-Position: refs/heads/main@{#983621}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.