commit | 6b6541825711b8a5e0fb3be9cf2c3fab13282a12 | [log] [tgz] |
---|---|---|
author | Lily Chen <chlily@chromium.org> | Wed Apr 12 23:27:26 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 12 23:27:26 2023 |
tree | 9e535d2a12495d070c617bf6c00bb6a15918ce81 | |
parent | ea47d50e619e68344788e724fd06d9f91425cd19 [diff] |
CaptionBubbleControllerViews: Check if map contains a bubble model This fixes a crash caused by dereferencing null CaptionBubbleModel pointers in the caption_bubble_models_ map. There should not be null CaptionBubbleModels in this map. Change an operator[] lookup to a find() lookup to avoid creating null entries. Also fixes some repeated map lookups. Bug: 1432502 Change-Id: Ib5c8a85cb8daf38cbd41ccb11d35db3b43032ca8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4415251 Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: Lily Chen <chlily@chromium.org> Cr-Commit-Position: refs/heads/main@{#1129586}
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.