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

Unified Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.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
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.mm
index aac14c8cde6fe22670ef0d79e97049031f25cf1a..da2519be894d603afb72fa4253c554b113ffc214 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_controller.mm
@@ -237,6 +237,7 @@ void FillVectorWithHashesUsingDistantSession(
[panelCell setTitle:SysUTF16ToNSString(tab->title)];
[panelCell setSessionGURL:tab->virtual_url
withBrowserState:[_model browserState]];
+ [panelCell setDelegate:self];
} else {
NSString* identifier = [TabSwitcherLocalSessionCell identifier];
TabSwitcherLocalSessionCell* panelCell =
@@ -247,10 +248,10 @@ void FillVectorWithHashesUsingDistantSession(
Tab* tab = _localSession->tabs()[tabIndex];
[panelCell setSessionType:_sessionType];
+ [panelCell setDelegate:self];
[panelCell setAppearanceForTab:tab cellSize:[_panelView cellSize]];
}
DCHECK(cell);
- cell.delegate = self;
return cell;
}
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698