commit | 47c5e0ccad96eb9973259dfa4a72e0da327fa15d | [log] [tgz] |
---|---|---|
author | Elaine Chien <elainechien@chromium.org> | Mon Feb 07 18:50:36 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 07 18:50:36 2022 |
tree | 40b901cf239e4409c70adbee6b86920e316f4ece | |
parent | 918e8f755c77e50d99ac82d85fa6c3b91424f277 [diff] |
[Color Pipeline] Replace GetThemeProviderForProfile with widget based ThemeProvider in ChromeCustomizeThemesHandler. VerifyThemeColors only tests that the developer called the color APIs correctly. It calls the same function (GetAutogeneratedThemeColors) that is called in ChromeCustomizeThemesHandler::GetChromeThemes or later down the line in BrowserThemePack for ThemeProvider colors and simply compares the results of effectively the same function call. On moving to a widget based ThemeProvider we will not have a BrowserWindow in this test setting and therefore will not have a ThemeProvider to test the specific colors generated. Therefore this CL removes VerifyThemeColors from the unit tests. We will be able to remove the logic that returns a placeholder color when we switch to ColorProvider since we will be guaranteed a ColorProvider for WebContents. Bug: 1056758 Change-Id: I2c761d04e89e26416069324e06796e4802847430 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3435147 Reviewed-by: Peter Kasting <pkasting@chromium.org> Commit-Queue: Elaine Chien <elainechien@chromium.org> Cr-Commit-Position: refs/heads/main@{#967894}
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.