Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: views/controls/tabbed_pane/tabbed_pane.cc

Issue 3044022: Fix code path in TabbedPane::RemoveTabAtIndex() (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/views/controls/tabbed_pane/tabbed_pane.cc b/views/controls/tabbed_pane/tabbed_pane.cc
index 7bff98f5753490470513c54843951aff25294acd..110b1348751a2e7c1ec574e5201a93261b2d0141 100644
--- a/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/views/controls/tabbed_pane/tabbed_pane.cc
@@ -49,8 +49,9 @@ View* TabbedPane::GetSelectedTab() {
}
View* TabbedPane::RemoveTabAtIndex(int index) {
- return native_tabbed_pane_->RemoveTabAtIndex(index);
+ View* tab = native_tabbed_pane_->RemoveTabAtIndex(index);
PreferredSizeChanged();
+ return tab;
}
void TabbedPane::SelectTabAt(int index) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698