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

Unified Diff: ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.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/sync/ios_chrome_synced_tab_delegate.mm
diff --git a/ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.mm b/ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.mm
index 67a293675af802864e754c0686c30e29c110def3..18e5a23c9b6166c8f5b616a36e6d79b80188d71b 100644
--- a/ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.mm
+++ b/ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.mm
@@ -61,7 +61,7 @@
}
int IOSChromeSyncedTabDelegate::GetCurrentEntryIndex() const {
- return web_state_->GetNavigationManager()->GetCurrentItemIndex();
+ return web_state_->GetNavigationManager()->GetLastCommittedItemIndex();
}
int IOSChromeSyncedTabDelegate::GetEntryCount() const {

Powered by Google App Engine
This is Rietveld 408576698