Index: ios/clean/chrome/browser/ui/tab_collection/tab_collection_view_controller.mm |
diff --git a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_view_controller.mm b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_view_controller.mm |
index 9b413be4cb2a283fa4de8c5ddd996ebf5646499d..87b9107604610f89762c285bbb91c8ef0dd46387 100644 |
--- a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_view_controller.mm |
+++ b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_view_controller.mm |
@@ -28,6 +28,7 @@ |
@synthesize tabs = _tabs; |
@synthesize items = _items; |
@synthesize selectedIndex = _selectedIndex; |
+@synthesize snapshotCache = _snapshotCache; |
#pragma mark - UIViewController |
@@ -118,8 +119,7 @@ |
[cell setSessionType:TabSwitcherSessionType::REGULAR_SESSION]; |
DCHECK_LE(indexPath.item, INT_MAX); |
int index = static_cast<int>(indexPath.item); |
- // PLACEHOLDER: SnapshotCache will be passed into the cell. |
- [cell configureCell:self.items[index] snapshotCache:nil]; |
+ [cell configureCell:self.items[index] snapshotCache:self.snapshotCache]; |
return cell; |
} |
@@ -194,8 +194,7 @@ |
TabCollectionTabCell* cell = base::mac::ObjCCastStrict<TabCollectionTabCell>( |
[self.tabs cellForItemAtIndexPath:[NSIndexPath indexPathForItem:index |
inSection:0]]); |
- // PLACEHOLDER: SnapshotCache will be passed into the cell. |
- [cell configureCell:self.items[index] snapshotCache:nil]; |
+ [cell configureCell:self.items[index] snapshotCache:self.snapshotCache]; |
} |
- (void)populateItems:(NSArray<TabCollectionItem*>*)items |