Chromium Code Reviews| Index: chrome/views/tabbed_pane.cc |
| =================================================================== |
| --- chrome/views/tabbed_pane.cc (revision 5528) |
| +++ chrome/views/tabbed_pane.cc (working copy) |
| @@ -120,9 +120,10 @@ |
| ResizeContents(tab_control_); |
| std::vector<View*>::iterator iter = tab_views_.begin() + index; |
| + View* removed_tab = *iter; |
| tab_views_.erase(iter); |
| - return *iter; |
| + return removed_tab; |
| } |
| void TabbedPane::SelectTabAt(int index) { |