summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sessions/tab_restore_service.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 18:37:25 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 18:37:25 +0000
commit022af74f8f0ab0ed381cc64831c7ad3921d02a7b (patch)
treed5a9492eeb97f71fa6670114b4736bc1c756afb1 /chrome/browser/sessions/tab_restore_service.cc
parent4f57823d8673c30668f562ff20290bb12b3eda83 (diff)
downloadchromium_src-022af74f8f0ab0ed381cc64831c7ad3921d02a7b.zip
chromium_src-022af74f8f0ab0ed381cc64831c7ad3921d02a7b.tar.gz
chromium_src-022af74f8f0ab0ed381cc64831c7ad3921d02a7b.tar.bz2
Remove the remaining usages of NavigationEntry in chrome by converting a few more NavigationController methods to return the interface. In a followup, I'll rename NavigationEntry to NavigationEntryImpl, then create an interface for NavigationController.
BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/9004045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions/tab_restore_service.cc')
-rw-r--r--chrome/browser/sessions/tab_restore_service.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc
index 9c1d066..f6e9646 100644
--- a/chrome/browser/sessions/tab_restore_service.cc
+++ b/chrome/browser/sessions/tab_restore_service.cc
@@ -28,8 +28,8 @@
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/url_constants.h"
#include "content/browser/tab_contents/navigation_controller.h"
-#include "content/browser/tab_contents/navigation_entry.h"
#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/navigation_entry.h"
using base::Time;
@@ -492,7 +492,7 @@ void TabRestoreService::PopulateTab(Tab* tab,
tab->navigations.resize(static_cast<int>(entry_count));
for (int i = 0; i < entry_count; ++i) {
content::NavigationEntry* entry = (i == pending_index) ?
- controller->pending_entry() : controller->GetEntryAtIndex(i);
+ controller->GetPendingEntry() : controller->GetEntryAtIndex(i);
tab->navigations[i].SetFromNavigationEntry(*entry);
}
tab->timestamp = TimeNow();
@@ -657,7 +657,7 @@ void TabRestoreService::ScheduleCommandsForTab(const Tab& tab,
// Creating a NavigationEntry isn't the most efficient way to go about
// this, but it simplifies the code and makes it less error prone as we
// add new data to NavigationEntry.
- scoped_ptr<NavigationEntry> entry(
+ scoped_ptr<content::NavigationEntry> entry(
navigations[i].ToNavigationEntry(wrote_count, profile()));
ScheduleCommand(
CreateUpdateTabNavigationCommand(kCommandUpdateTabNavigation, tab.id,