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

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2706403009: Revert of Updated tab history classes to use NavigationItemLists. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | ios/chrome/browser/ui/history/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index 88368c6e54d28706be87be7c63a16d3c19d3c14b..802ad989c76a4fcb325200eb2dfcaae0406970be 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -3355,7 +3355,7 @@
DCHECK([tab navigationManager]);
CRWSessionController* sc = [tab navigationManager]->GetSessionController();
[_toolbarController showTabHistoryPopupInView:[self view]
- withItems:[sc backwardItems]
+ withSessionEntries:[sc backwardEntries]
forBackHistory:YES];
}
@@ -3371,14 +3371,14 @@
DCHECK([tab navigationManager]);
CRWSessionController* sc = [tab navigationManager]->GetSessionController();
[_toolbarController showTabHistoryPopupInView:[self view]
- withItems:[sc forwardItems]
+ withSessionEntries:[sc forwardEntries]
forBackHistory:NO];
}
- (void)navigateToSelectedEntry:(id)sender {
DCHECK([sender isKindOfClass:[TabHistoryCell class]]);
TabHistoryCell* selectedCell = (TabHistoryCell*)sender;
- [[_model currentTab] goToItem:selectedCell.item];
+ [[_model currentTab] goToItem:selectedCell.entry.navigationItem];
[_toolbarController dismissTabHistoryPopup];
}
« no previous file with comments | « no previous file | ios/chrome/browser/ui/history/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698