summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/singleton_tabs.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-10 23:17:33 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-10 23:17:33 +0000
commitee49695d22fe52592053e393da9836e80b9a3346 (patch)
treecb831d93ea70a5f7061a872d89dd3cb263fa73e9 /chrome/browser/ui/singleton_tabs.cc
parentf61074ebe2568520845519dc8a8c0831dac85c3e (diff)
downloadchromium_src-ee49695d22fe52592053e393da9836e80b9a3346.zip
chromium_src-ee49695d22fe52592053e393da9836e80b9a3346.tar.gz
chromium_src-ee49695d22fe52592053e393da9836e80b9a3346.tar.bz2
Remove TabStripModel wrapper use.
BUG=167548 TEST=no functional change Review URL: https://chromiumcodereview.appspot.com/11674002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/singleton_tabs.cc')
-rw-r--r--chrome/browser/ui/singleton_tabs.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/ui/singleton_tabs.cc b/chrome/browser/ui/singleton_tabs.cc
index 4059403..0d0a39e 100644
--- a/chrome/browser/ui/singleton_tabs.cc
+++ b/chrome/browser/ui/singleton_tabs.cc
@@ -84,8 +84,9 @@ int GetIndexOfSingletonTab(NavigateParams* params) {
&reverse_on_redirect);
// If there are several matches: prefer the active tab by starting there.
- int start_index = std::max(0, params->browser->active_index());
- int tab_count = params->browser->tab_count();
+ int start_index =
+ std::max(0, params->browser->tab_strip_model()->active_index());
+ int tab_count = params->browser->tab_strip_model()->count();
for (int i = 0; i < tab_count; ++i) {
int tab_index = (start_index + i) % tab_count;
content::WebContents* tab =