commit | 48b6f8d2c671c9a6d8dc6ff4e53a4cb15ce02e9e | [log] [tgz] |
---|---|---|
author | Christian Dullweber <dullweber@chromium.org> | Fri Jul 16 16:08:03 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 16 16:08:03 2021 |
tree | b05e44c728b8e4aabbd47262c796a28af36334ad | |
parent | 701237c47091b1e858ade6074dff073e46abb0dc [diff] |
PageInfo: Reduce memory allocations for discoverability icon The experiment results show slightly increased memory usage from the discoverability icon: https://crbug.com/1228739#c1 This CL removes some unnecessary allocations. The static getHighestPriorityPermission() method in SingleWebsiteSettings triggers lots of classes to be loaded. To avoid this, it is moved to a separate util class. ContentSettingsResources has some static configuration data. Replace it with a switch statement to avoid permanently allocating memory for this. Bug: 1228739 Change-Id: I3d36dc63d41fc8d896a2710ece58e557a5318759 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3026865 Reviewed-by: Ehimare Okoyomon <eokoyomon@chromium.org> Reviewed-by: Tomasz Wiszkowski <ender@google.com> Auto-Submit: Christian Dullweber <dullweber@chromium.org> Commit-Queue: Tomasz Wiszkowski <ender@google.com> Cr-Commit-Position: refs/heads/master@{#902441}
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.