commit | 717e786d0b1f416b41b296fc863d1e6180759f7e | [log] [tgz] |
---|---|---|
author | Federico Paredes <fedpar@microsoft.com> | Wed Aug 18 01:27:20 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 18 01:27:20 2021 |
tree | df0199ab8ae6398fb56b27f8f6a17d3297243a6d | |
parent | 1a1296891c72609e653e437cfbc2643bae90bb8a [diff] |
Fixed crash when adding all bookmarks to new group The browser would crash when activating the "Open all in new tab group" menu item while on an empty Bookmarks bar (or empty folder). This change does 3 things: 1. Add a simple DCHECK in TabStripModel::AddToNewGroup to verify that the indices parameter isn't empty. 2. Gray out the "Open all in new tab group" option if there are no bookmarks. 3. Add a DCHECK if the user somehow selects "Open all in new tab group" and there are no bookmarks, just in case the option were to ever show up as enabled when it shouldn't. Bug: 1240694 Change-Id: I4eb8bd47e7b4aa1f9335282d8cd6210946361d17 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3100552 Reviewed-by: Dana Fried <dfried@chromium.org> Reviewed-by: Charlene Yan <cyan@chromium.org> Commit-Queue: Federico Paredes <fedpar@microsoft.com> Cr-Commit-Position: refs/heads/master@{#912845}
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.