commit | 5d200fc0019e37a8d7ce399d92ef1e3eb02178cc | [log] [tgz] |
---|---|---|
author | Patrick Monette <pmonette@chromium.org> | Tue Jul 23 20:19:38 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 23 20:19:38 2024 |
tree | c17716e3ade01ccd050db038c2f0b81fc976d615 | |
parent | 0522a54e9deabf84483e9c93ab439a629312e068 [diff] |
RenderProcessHost: Expose base::Process::Priority This gets rid of IsProcessBackgrounded() in favor of GetPriority(), and changes a lot of its use cases. In the future, there will be more priority states than just "foregrounded" and "backgrounded". For now, "foregrounded" maps to "kUserBlocking" and "backgrounded" maps to "kBestEffort". The current plans for the additional priority state is to differentiate between different foreground states, so replacing "IsProcessBackgrounded()" with "GetPriority() == kBestEffort" is better than replacing it with "GetPriority() != kUserBlocking". Bug: 348148939 Change-Id: Ibfc1663489465cba00f13ee3ca49a5f9265cfc5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5713290 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Patrick Monette <pmonette@chromium.org> Reviewed-by: Yaron Friedman <yfriedman@chromium.org> Reviewed-by: Bo Liu <boliu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1331968}
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.