| 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 2c1afc47bdc40ff675d0a7f7f62e4a5c5ed26b54..e93ce44860d61abed3d8e6234ed1288e7393ddb1 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
|
| @@ -30,6 +30,7 @@ const CGSize kTabCollectionTabCellSize = {250.0f, 250.0f};
|
| @synthesize tabs = _tabs;
|
| @synthesize items = _items;
|
| @synthesize selectedIndex = _selectedIndex;
|
| +@synthesize snapshotCache = _snapshotCache;
|
|
|
| #pragma mark - UIViewController
|
|
|
| @@ -120,8 +121,7 @@ const CGSize kTabCollectionTabCellSize = {250.0f, 250.0f};
|
| [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;
|
| }
|
|
|
| @@ -197,8 +197,7 @@ const CGSize kTabCollectionTabCellSize = {250.0f, 250.0f};
|
| 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
|
| @@ -214,8 +213,7 @@ const CGSize kTabCollectionTabCellSize = {250.0f, 250.0f};
|
| 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];
|
| }
|
|
|
| @end
|
|
|