-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Side Panel] Remove extension panel type checks in SidePanelCoordinator
This CL refactors SidePanelCoordinator to not explicitly check if a SidePanelEntry is from an extension. Many of the behavior changes can be reframed as "reasonable for panel types that are registered in both global and contextual registries". Change the fallback order of panels shown in OnTabStripModelChanged (if a panel is showing in the old tab): - 1) the new tab's registry's active entry - if an entry with the same key as the active panel exists in the global registry: - 2) the new tab's registry's entry with the same key - 3) the global registry's entry with the same key - 4) the global registry's active entry - 5) none (close the side panel) One-pager (internal): https://docs.google.com/document/d/1VkRaJ17vpjEcHMnuvz55wQe6tm8s7vyetw941E307IM/edit?usp=sharing&resourcekey=0-LyJbbUCObtlrltN47iMYEQ Bug: 1403745 Change-Id: I95ee855714c47ad8aec55bde655d2625869cde51 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4207328 Reviewed-by: Caroline Rising <corising@chromium.org> Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org> Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1108735}
- Loading branch information
1 parent
ee1f5db
commit 40a4e45
Showing
3 changed files
with
237 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.