diff options
Diffstat (limited to 'chrome/browser/ui/singleton_tabs.cc')
-rw-r--r-- | chrome/browser/ui/singleton_tabs.cc | 5 |
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 = |