Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5790] Don't keep Inactive Tabs VC in memory
This CL changes the lifecycle of InactiveTabsViewController: instead of keeping it alive as long as the regular Tab Grid (i.e. forever), it's created when presented, and destroyed when dismissed. This is because a Tab Grid incurs a large memory cost due to the tab snapshots that it displays. By destroying the Inactive Tabs VC when not used, we ensure a lower memory footprint throughout the use of the app. This CL regresses on one point: the scroll offset is no longer kept between showings of the Inactive Tabs VC. Opened crbug.com/1448025 to track. (cherry picked from commit 15cbe1e) Bug: 1446088 Change-Id: I8dee1fd06b04cd22fa679b7a6f6cf637bcbb5624 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4555825 Reviewed-by: Ewann Pellé <ewannpv@chromium.org> Auto-Submit: Louis Romero <lpromero@google.com> Commit-Queue: Ewann Pellé <ewannpv@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1148425} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4591849 Reviewed-by: Gauthier Ambard <gambard@chromium.org> Commit-Queue: Louis Romero <lpromero@google.com> Cr-Commit-Position: refs/branch-heads/5790@{#378} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information
Showing
4 changed files
with
66 additions
and
56 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
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