| Index: ios/chrome/browser/tabs/tab.mm
|
| diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
|
| index cd84b0fce7d043e1daa43e47cafd2d575580e404..a376f6accd950e350c904b89f7a05a83115bff70 100644
|
| --- a/ios/chrome/browser/tabs/tab.mm
|
| +++ b/ios/chrome/browser/tabs/tab.mm
|
| @@ -1789,16 +1789,7 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
|
| finishPageLoadForTab:self
|
| loadSuccess:loadSuccess];
|
|
|
| - // Always take snapshots on iPad if the tab switcher is enabled.
|
| - // If the tab switcher is not enabled, don't take snapshot of chrome scheme
|
| - // pages.
|
| - BOOL takeSnapshotOnIpad =
|
| - IsIPadIdiom() &&
|
| - (experimental_flags::IsTabSwitcherEnabled() ||
|
| - !web::GetWebClient()->IsAppSpecificURL(lastCommittedURL));
|
| - // Always take snapshot on iPhone.
|
| - BOOL takeSnapshot = !IsIPadIdiom() || takeSnapshotOnIpad;
|
| - if (loadSuccess && takeSnapshot) {
|
| + if (loadSuccess) {
|
| [self updateSnapshotWithOverlay:YES visibleFrameOnly:YES];
|
| }
|
| [webControllerSnapshotHelper_ setSnapshotCoalescingEnabled:NO];
|
|
|