commit | fd08fa82757dc675ba24792d04d93807d4ee849d | [log] [tgz] |
---|---|---|
author | Ryan Sultanem <rsult@google.com> | Wed Dec 07 17:04:56 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 07 17:04:56 2022 |
tree | d77486e9f3a8e3ff20c14d3fcb8bd1b21e3e4796 | |
parent | 991a0ebb5cad76414626f0e1423638fb64511d39 [diff] |
Protect GetLoadedProfiles() profiles that uses KeyedServices With the active experiment `kSystemProfileSelectionDefaultNone` crashes can appear when getting keyedservices without checking their validity, since System Profile now instantiates very few needed KeyedServices. A common pattern is to get all active profiles through `ProfileManager::GetLoadedProfiles()` which might return the System Profile if the ProfilePicker was instantiated once at least during a session. Since the call to the profile list can be totally non service related, this CL adds protection to all of those calls that are followed by getting a KeyedService. Bug: 1284664, 1395198 Change-Id: Ifd35c2480c47539a2007c54e8d137a7f621e6fc0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4085089 Reviewed-by: David Roger <droger@chromium.org> Commit-Queue: Ryan Sultanem <rsult@google.com> Cr-Commit-Position: refs/heads/main@{#1080381}
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.