summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sessions
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 08:50:23 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 08:50:23 +0000
commit5bf053ef488c81f6ec822de35cab79188c74f9dd (patch)
tree0cef89cb7594a5805fd67633fe60b6bf3d675417 /chrome/browser/sessions
parentdb6f5f898d9513d94efb1b066e972715e8d38e83 (diff)
downloadchromium_src-5bf053ef488c81f6ec822de35cab79188c74f9dd.zip
chromium_src-5bf053ef488c81f6ec822de35cab79188c74f9dd.tar.gz
chromium_src-5bf053ef488c81f6ec822de35cab79188c74f9dd.tar.bz2
Change Browser::GetIndexOfController to GetIndexOfTabContents. Now that we
don't have tab contents switching, identifying tabs by their controller is weird, so we should gradually move to only using TabContents*. Review URL: http://codereview.chromium.org/115018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions')
-rw-r--r--chrome/browser/sessions/tab_restore_service.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc
index 5399c21..592921e 100644
--- a/chrome/browser/sessions/tab_restore_service.cc
+++ b/chrome/browser/sessions/tab_restore_service.cc
@@ -353,8 +353,8 @@ void TabRestoreService::PopulateTab(Tab* tab,
// Browser may be NULL during unit tests.
if (browser) {
tab->browser_id = browser->session_id().id();
- tab->tabstrip_index =
- browser->tabstrip_model()->GetIndexOfController(controller);
+ tab->tabstrip_index = browser->tabstrip_model()->GetIndexOfTabContents(
+ controller->tab_contents());
}
}