| commit | 2f8c43f77dfb32331ac844c2024c17d56ef07dee | [log] [tgz] |
|---|---|---|
| author | Longbo Wei <longbowei@google.com> | Fri Sep 01 23:48:49 2023 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 01 23:48:49 2023 |
| tree | fc4b248a987e612b9a1ea913a3af4a7b445aa080 | |
| parent | 6b78045726c59a2f284f47f871e2e583b8862454 [diff] |
Shortcuts: Fix failed to read unregistered pref: accelerator.override When kShortcutCustomization flag is false, AshAcceleratorConfiguration won't register the kShortcutCustomizationOverrides. But Shell::Get()->accelerator_prefs()->IsCustomizationAllowed() may be true because it can be set to be true by admin policy. This will cause a crash because the code will try to read an unregistered pref: accelerator overrides. http://screen/B4gumWbWqHqk2Dy Bug: b/216049298 Change-Id: If79944e9ca8421f97ba08fb53fd1479511838325 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4836702 Reviewed-by: Jimmy Gong <jimmyxgong@chromium.org> Commit-Queue: Longbo Wei <longbowei@google.com> Cr-Commit-Position: refs/heads/main@{#1191663}
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.