commit | 35d9156525dc3a2e7b3e2051e501c526a227bb18 | [log] [tgz] |
---|---|---|
author | Jeffrey Young <cowmoo@google.com> | Wed Jun 21 19:52:40 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 21 19:52:40 2023 |
tree | 960c9b448eef761334d13e9fcfe5109237cd8cb3 | |
parent | 70e65d505e6c91cdb835a9faa79b77b7928209b5 [diff] |
wallpaper: safer saving policy/custom wallpaper There is a race condition when first logging in between reading and saving wallpaper policy image. If the stars align, the login sequence that reads policy-controlled.jpeg will get a partial read while the sequence that refreshes policy wallpaper is re-saving it. Mitigate this by writing wallpaper data to a tmp file and then moving it to the desired location. Bug: b:280578317 Test: ash_unittests --gtest_filter=*WallpaperController* Change-Id: If78ba85e0ebb7cb8bfab99f90a9deaa3a19da579 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4628564 Commit-Queue: Jeffrey Young <cowmoo@google.com> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/main@{#1160809}
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.