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

Unified Diff: ios/chrome/browser/web/navigation_manager_util.mm

Issue 2766063002: Remove the concept of currentItemIndex (Closed)
Patch Set: fix unit tests 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
Index: ios/chrome/browser/web/navigation_manager_util.mm
diff --git a/ios/chrome/browser/web/navigation_manager_util.mm b/ios/chrome/browser/web/navigation_manager_util.mm
index 81a61b908a3971ec7cd750e68af3db88e026bd86..794c72a181cfe7683ae0840b15b76e3e208ab394 100644
--- a/ios/chrome/browser/web/navigation_manager_util.mm
+++ b/ios/chrome/browser/web/navigation_manager_util.mm
@@ -12,7 +12,7 @@
web::NavigationManager* nav_manager) {
if (!nav_manager || !nav_manager->GetItemCount())
return nullptr;
- int index = nav_manager->GetCurrentItemIndex();
+ int index = nav_manager->GetLastCommittedItemIndex();
web::NavigationItem* item = nullptr;
while (index >= 0) {
item = nav_manager->GetItemAtIndex(index);
« no previous file with comments | « ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.mm ('k') | ios/shared/chrome/browser/tabs/web_state_list.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698