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

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

Issue 2491773005: [ios] Removed canGoBack/canGoForward API from CRWSessionController. (Closed)
Patch Set: Fixed compilation. Created 4 years, 1 month 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/crw_session_controller_unittest.mm » ('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 f67e7330e69f8f163a878108c81e5c26fde9284a..0dbcb0a56f2074b91b228554b5a54abe0e9dfa8f 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -626,14 +626,6 @@ NSString* const kWindowNameKey = @"windowName";
DCHECK(_pendingEntryIndex == -1 || _pendingEntry);
}
-- (BOOL)canGoBack {
- return [self canGoDelta:-1];
-}
-
-- (BOOL)canGoForward {
- return [self canGoDelta:1];
-}
-
- (BOOL)canGoDelta:(int)delta {
NSInteger index = [self indexOfEntryForDelta:delta];
return 0 <= index && static_cast<NSUInteger>(index) < _entries.count;
« no previous file with comments | « ios/web/navigation/crw_session_controller.h ('k') | ios/web/navigation/crw_session_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698