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

Unified Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 1143333003: Eliminate redundancy in the parameters to NotifyEntryChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: content/browser/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index b9d69554539a2ca922f8ad008f743cfff7303dfd..6ac3a106994a024a5e0fa0837bb3280799c4a58b 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -1910,11 +1910,12 @@ void NavigationControllerImpl::LoadIfNecessary() {
NavigateToPendingEntry(NO_RELOAD);
}
-void NavigationControllerImpl::NotifyEntryChanged(const NavigationEntry* entry,
- int index) {
+void NavigationControllerImpl::NotifyEntryChanged(
+ const NavigationEntry* entry) {
EntryChangedDetails det;
det.changed_entry = entry;
- det.index = index;
+ det.index = GetIndexOfEntry(
+ NavigationEntryImpl::FromNavigationEntry(entry));
NotificationService::current()->Notify(
NOTIFICATION_NAV_ENTRY_CHANGED,
Source<NavigationController>(this),
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.h ('k') | content/browser/frame_host/navigation_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698