From 7f0005ab19ca4e374029180753c32e4c9813303a Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Wed, 15 Apr 2009 03:25:11 +0000 Subject: Remove TabContentsType from the NavigationController external interface and in some related areas. I removed all uses of this in the previous patch. Review URL: http://codereview.chromium.org/73057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13730 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/sessions/tab_restore_service.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/sessions/tab_restore_service.cc') diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc index b49e3f6..340bf34 100644 --- a/chrome/browser/sessions/tab_restore_service.cc +++ b/chrome/browser/sessions/tab_restore_service.cc @@ -310,14 +310,14 @@ void TabRestoreService::Save() { void TabRestoreService::PopulateTabFromController( NavigationController* controller, Tab* tab) { - const int pending_index = controller->GetPendingEntryIndex(); - int entry_count = controller->GetEntryCount(); + const int pending_index = controller->pending_entry_index(); + int entry_count = controller->entry_count(); if (entry_count == 0 && pending_index == 0) entry_count++; tab->navigations.resize(static_cast(entry_count)); for (int i = 0; i < entry_count; ++i) { NavigationEntry* entry = (i == pending_index) ? - controller->GetPendingEntry() : controller->GetEntryAtIndex(i); + controller->pending_entry() : controller->GetEntryAtIndex(i); tab->navigations[i].SetFromNavigationEntry(*entry); } tab->current_navigation_index = controller->GetCurrentEntryIndex(); -- cgit v1.1