Commit 77cd01c0 authored by edchin's avatar edchin Committed by Commit Bot

[ios] Close all only visible panel

Previously, the close all button in regular tabs panel in tab grid would
close both the regular tabs and incognito tabs. This was the behavior
in the stack view.

This CL makes it only close the visible panel, as that makes more sense.

Bug: 845496
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I730f7c102baaf96e983543baa42d277414339b90
Reviewed-on: https://chromium-review.googlesource.com/1120680Reviewed-by: default avataredchin <edchin@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: edchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571911}
parent 8744029d
......@@ -920,7 +920,6 @@ NSUInteger GetPageIndexFromPage(TabGridPage page) {
if (self.undoCloseAllAvailable) {
[self.regularTabsDelegate undoCloseAllItems];
} else {
[self.incognitoTabsDelegate closeAllItems];
[self.regularTabsDelegate saveAndCloseAllItems];
}
self.undoCloseAllAvailable = !self.undoCloseAllAvailable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment