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

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

Issue 2774343004: Call |NavigationItemsPruned| when item is removed in session controller. (Closed)
Patch Set: 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 | « no previous file | no next file » | 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 2fcda1a4ed010e0e7a8dc1bf51b4afedd66217bf..0821e76e464f34daa043b57d3262afe2d4e26951 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -548,6 +548,9 @@ - (void)removeItemAtIndex:(NSInteger)index {
_lastCommittedItemIndex--;
if (_previousItemIndex >= index)
_previousItemIndex--;
+
+ if (_navigationManager)
+ _navigationManager->OnNavigationItemsPruned(1U);
}
- (BOOL)isSameDocumentNavigationBetweenItem:(web::NavigationItem*)firstItem
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698