commit | b891a62042ede0578a1f989b257a0d3b98cc16fc | [log] [tgz] |
---|---|---|
author | Alan Cutter <alancutter@chromium.org> | Tue Dec 03 04:05:08 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Dec 03 04:05:08 2019 |
tree | 17d297a09d5ea897080124da1bbcdf98003698a0 | |
parent | 3b702be3eda9e06eedaf0c7cd4d33ca31ae2a80d [diff] |
WebApps: Split web app icon data into manifest URLs and downloaded bitmaps WebApplicationsInfo stores its icons' size, URL and bitmap data in one struct. This makes it impossible to check whether a site's icon manifest data has changed without undergoing the entire icon downloading process. This CL splits the struct up into two: - Icon URL + size - Icon size + bitmap data This allows us to compare the first with the latest site manifest to check for updates. This wasn't possible previously as we would only store icons that successfully loaded and would also throw away the original specified sizes. The majority of the changes in this CL derive from the change made to WebApplicationInfo splitting "icons" into "icon_infos" and "icon_bitmaps" e.g. UpdateWebAppIconsWithoutChangingLinks() is being removed because it is redundant now that icon_infos is an input to icon downloading and icon_bitmaps is an output, by retaining the icon_infos input separately no input URLs will be changed. Design doc: https://docs.google.com/document/d/1Ryd35qXIOpRHNLUy0Mz0LRILzSdZcRdiJBHNvrNPjeI/edit Bug: 926083 Change-Id: I5e52d5e05644de8a15d61dbfb70eca417c1dcfb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928600 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Reviewed-by: Theresa <twellington@chromium.org> Reviewed-by: Alexey Baskakov <loyso@chromium.org> Reviewed-by: Oliver Chang <ochang@chromium.org> Cr-Commit-Position: refs/heads/master@{#720809}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .