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

Unified Diff: chrome/browser/sessions/persistent_tab_restore_service.cc

Issue 14497003: Moves TabNavigation into components/sessions and renames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really remove webkit_support Created 7 years, 8 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/sessions/persistent_tab_restore_service.cc
diff --git a/chrome/browser/sessions/persistent_tab_restore_service.cc b/chrome/browser/sessions/persistent_tab_restore_service.cc
index 9e7e801198d255db7740d030f4f3773f803236bf..a138e76b8b4dbfb56bb339b726ec03ee78272b33 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service.cc
+++ b/chrome/browser/sessions/persistent_tab_restore_service.cc
@@ -414,7 +414,8 @@ void PersistentTabRestoreService::Delegate::ScheduleCommandsForWindow(
void PersistentTabRestoreService::Delegate::ScheduleCommandsForTab(
const Tab& tab,
int selected_index) {
- const std::vector<TabNavigation>& navigations = tab.navigations;
+ const std::vector<sessions::SerializedNavigationEntry>& navigations =
+ tab.navigations;
int max_index = static_cast<int>(navigations.size());
// Determine the first navigation we'll persist.
@@ -515,7 +516,8 @@ PersistentTabRestoreService::Delegate::CreateRestoredEntryCommand(
int PersistentTabRestoreService::Delegate::GetSelectedNavigationIndexToPersist(
const Tab& tab) {
- const std::vector<TabNavigation>& navigations = tab.navigations;
+ const std::vector<sessions::SerializedNavigationEntry>& navigations =
+ tab.navigations;
int selected_index = tab.current_navigation_index;
int max_index = static_cast<int>(navigations.size());
« no previous file with comments | « chrome/browser/sessions/base_session_service.cc ('k') | chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698