| Index: chrome/browser/cocoa/tab_strip_controller.mm
|
| diff --git a/chrome/browser/cocoa/tab_strip_controller.mm b/chrome/browser/cocoa/tab_strip_controller.mm
|
| index 28678d704a337a57f810a5c03e34bcb314d5c7bb..46a98df6348123caa10d8f4c35bccdea03eb0484 100644
|
| --- a/chrome/browser/cocoa/tab_strip_controller.mm
|
| +++ b/chrome/browser/cocoa/tab_strip_controller.mm
|
| @@ -295,14 +295,6 @@ class TabStripBridge : public TabStripModelObserver {
|
| previousContents:(TabContents*)oldContents
|
| atIndex:(NSInteger)index
|
| userGesture:(bool)wasUserGesture {
|
| - int selectedIndex = 0;
|
| - for (TabController* current in tabArray_) {
|
| - if ([current selected]) {
|
| - break;
|
| - }
|
| - ++selectedIndex;
|
| - }
|
| -
|
| // De-select all other tabs and select the new tab.
|
| int i = 0;
|
| for (TabController* current in tabArray_) {
|
| @@ -314,13 +306,6 @@ class TabStripBridge : public TabStripModelObserver {
|
| NSView* selectedTab = [self viewAtIndex:index];
|
| [tabView_ addSubview:selectedTab positioned:NSWindowAbove relativeTo:nil];
|
|
|
| - // Tell the current tab to lose focus.
|
| - if (selectedIndex < (int)[tabArray_ count]) {
|
| - TabContentsController* selectedController =
|
| - [tabContentsArray_ objectAtIndex:selectedIndex];
|
| - [selectedController defocusLocationBar];
|
| - }
|
| -
|
| // Tell the new tab contents it is about to become the selected tab. Here it
|
| // can do things like make sure the toolbar is up to date.
|
| TabContentsController* newController =
|
|
|