Index: chrome/browser/ui/tabs/tab_strip_model_order_controller.cc |
=================================================================== |
--- chrome/browser/ui/tabs/tab_strip_model_order_controller.cc (revision 145001) |
+++ chrome/browser/ui/tabs/tab_strip_model_order_controller.cc (working copy) |
@@ -98,7 +98,7 @@ |
// If we can't find a subsequent group member, just fall back to the |
// parent_opener itself. Note that we use "group" here since opener is |
// reset by select operations.. |
- index = tabstrip_->GetIndexOfController(parent_opener); |
+ index = tabstrip_->GetIndexOfWebContents(parent_opener->GetWebContents()); |
if (index != TabStripModel::kNoTab) |
return GetValidIndex(index, removing_index); |
} |