Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm

Issue 2631233002: Fix the order in which the iOS Tab Switcher cells are initialized. (Closed)
Patch Set: Addressed comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
index 1bd0b37542d00c85ac81ed7c85cf73c081e4c8f1..bad9ca219e0c990b13e27012ce3e851739f969fa 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
@@ -230,6 +230,8 @@ CGFloat tabSwitcherLocalSessionCellTopBarHeight() {
CGSize snapshotSize = cellSize;
snapshotSize.height -= tabSwitcherLocalSessionCellTopBarHeight();
base::WeakNSObject<TabSwitcherLocalSessionCell> weakCell(self);
+ DCHECK(self.delegate);
+ DCHECK([self cache]);
_currentPendingSnapshotRequest =
[[self cache] requestSnapshotForTab:tab
withSize:snapshotSize

Powered by Google App Engine
This is Rietveld 408576698