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

Unified Diff: ios/web/navigation/crw_session_controller.mm

Issue 2756483006: Adds NavigationManager util functions to ios/chrome/browser/web/ (Closed)
Patch Set: changed #include to #import and minor renaming. Created 3 years, 9 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/web/navigation/crw_session_controller.h ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/crw_session_controller.mm
diff --git a/ios/web/navigation/crw_session_controller.mm b/ios/web/navigation/crw_session_controller.mm
index e367d21bd3b02c21961cb1b7a9d54a66f6899003..5e1aa56d6b6e79df31aa8099b57ebdaf587086c6 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -206,19 +206,6 @@ initiationType:(web::NavigationInitiationType)initiationType;
return index == -1 || self.items.empty() ? nullptr : self.items[index].get();
}
-- (web::NavigationItemImpl*)lastUserItem {
- if (self.items.empty())
- return nil;
-
- NSInteger index = self.currentNavigationIndex;
- // This will return the first NavigationItem if all other items are
- // redirects, regardless of the transition state of the first item.
- while (index > 0 && [self isRedirectTransitionForItemAtIndex:index])
- --index;
-
- return self.items[index].get();
-}
-
- (web::NavigationItemList)backwardItems {
web::NavigationItemList items;
for (size_t index = _currentNavigationIndex; index > 0; --index) {
« no previous file with comments | « ios/web/navigation/crw_session_controller.h ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698