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

Unified Diff: ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm

Issue 2766063002: Remove the concept of currentItemIndex (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
Index: ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
diff --git a/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm b/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
index 072e0d80a8c097bf01e63bc8e9240fa8d1777d2f..a99d66b51d79499710bcb68017f5c66736306568 100644
--- a/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
+++ b/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
@@ -18,7 +18,7 @@
bool IsLinkNavigation(web::WebState* web_state) {
web::NavigationManager* navigationManager = web_state->GetNavigationManager();
DCHECK(navigationManager);
- int index = navigationManager->GetCurrentItemIndex();
+ int index = navigationManager->GetLastCommittedItemIndex();
// Walks backward on the navigation items list looking for the first item
// that is not the result of a redirect. Check if user arrived at that
// via link click or a suggestion on the UI.

Powered by Google App Engine
This is Rietveld 408576698