commit | 0982f04dd6538a1e02b9c8655c639af2d5a05ffc | [log] [tgz] |
---|---|---|
author | David Bokan <bokan@chromium.org> | Mon Dec 30 20:20:26 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 30 20:20:26 2024 |
tree | 5f7ed2912416d278c0c78f7974d3044ec059ea39 | |
parent | 6e05f59502b539920a66e452dcd8e03eb6bb8ec1 [diff] |
Fix incognito mode crash GlicKeyedService is not created when in an incognito profile due to the fact that the factory inherits from ProfileKeyedServiceFactory[1]. This causes crashes in several code paths that assume the GlicKeyedService is non-null. This CL updates those paths to check for EnabledForProfile. This prevents creating any related UI as well as prevents registering a handler for chrome://glic. [1] https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/profiles/profile_keyed_service_factory.h;l=45;drc=24386822ca7fb24c3785efb4d709f137c1b8f786 Bug: 386790391 Change-Id: Ie5b53f375dfaf84bbdfbd14637d3b5183323b3fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6115638 Reviewed-by: Eshwar Stalin <estalin@chromium.org> Owners-Override: David Bokan <bokan@chromium.org> Reviewed-by: Anthony Cui <cuianthony@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1400988}
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.