commit | 8f02e337bb2c7b46b004a0ce82006b90af8aa4cd | [log] [tgz] |
---|---|---|
author | Xiyuan Xia <xiyuan@chromium.org> | Tue Jun 27 16:56:15 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 27 16:56:15 2023 |
tree | 3d285f20970d3d4093261b152524ddb54ee5d9e7 | |
parent | 51bb1df790465d4fe116ed7347bf1b0deafcc1d3 [diff] |
arc: Fix UpdateEnabledStateByUserTypeUMA crash http://crrev.com/c/4629590 changes UpdateEnabledStateByUserTypeUMA to use GetBrowserContextByUser but neglected the case that there could be no user when UpdateEnabledStateByUserTypeUMA is called. GetBrowserContextByUser crashes when there is no user. This CL fixes the crash by null check primary user before calling into GetBrowserContextByUser. Bug: b:288964303 Change-Id: I3eb1e5d219abd4368f976c63a5df599793125e50 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4651688 Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Auto-Submit: Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Hidehiko Abe <hidehiko@chromium.org> Cr-Commit-Position: refs/heads/main@{#1163033}
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.