commit | f9f16188bee0878130dc5d75da44cc29642369f2 | [log] [tgz] |
---|---|---|
author | Riley Tatum <rtatum@google.com> | Thu Apr 06 17:52:33 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 06 17:52:33 2023 |
tree | ae08453db41816ec78363c5d5b45483452292d50 | |
parent | 50202da50396dbf4b28b132df4ce54a3cd3b3b94 [diff] |
[NTP] Add check for policy to confirm and revert background There was an issue where clicking "Done" when a user's policy disabled custom backgrounds would not do anything (it wouldn't save any theme color changes or close the modal). The problem was that confirmBackgroundChanges is called on "Done" whether a background was changed or not. However, the pageHandler for customize_backgrounds is not set in the constructor if customBackgroundDisabledByPolicy. A check was added for that policy value so that we don't end up with an error from an undefined pageHandler. Bug: 1428676 Change-Id: I2c69e970b51a99299c13a287fa9c29ca32f19077 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4404622 Reviewed-by: Roman Arora <romanarora@chromium.org> Commit-Queue: Riley Tatum <rtatum@google.com> Cr-Commit-Position: refs/heads/main@{#1127277}
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.