[webui][ntp] Add minimal support for third-party themes with backgrounds
Third party theme background images are served via chrome[-search]://theme/IDR_THEME_NTP_BACKGROUND?<theme-id>. The WebUI NTP embeds the background image via a chrome-untrusted:// iframe since most background images are fetched from the web. This means to use the common WebUI NTP background image machinery the theme image has to be available to a chrome-untrusted:// iframe. Therefore, this CL adds support for serving the theme data source on the chrome-untrusted scheme. With that, this CL sets the background image URL to chrome-untrusted://theme/IDR_THEME_NTP_BACKGROUND?<theme-id> if a theme with a third-party background image is set. Furthermore, this CL adds white pills around the shortcut titles as the local NTP does it. Bug: 1081441 Change-Id: Ia26546c395fabbcee17062ebec17956042cd85f8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2197661 Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by:Nasko Oskov <nasko@chromium.org> Reviewed-by:
Esmael Elmoslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#768523}
Showing
Please register or sign in to comment