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

Unified Diff: chrome/browser/session_service.cc

Issue 479: DidNavigate refactor of doom (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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: chrome/browser/session_service.cc
===================================================================
--- chrome/browser/session_service.cc (revision 1840)
+++ chrome/browser/session_service.cc (working copy)
@@ -425,11 +425,16 @@
changed->index, *changed->changed_entry);
break;
}
- case NOTIFY_NAV_ENTRY_COMMITTED:
+ case NOTIFY_NAV_ENTRY_COMMITTED: {
+ int current_entry_index = controller->GetCurrentEntryIndex();
SetSelectedNavigationIndex(controller->window_id(),
controller->session_id(),
- controller->GetCurrentEntryIndex());
+ current_entry_index);
+ UpdateTabNavigation(controller->window_id(), controller->session_id(),
+ current_entry_index,
+ *controller->GetEntryAtIndex(current_entry_index));
break;
+ }
default:
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698