diff options
Diffstat (limited to 'chrome/browser/views/tabs/tab_strip.cc')
-rw-r--r-- | chrome/browser/views/tabs/tab_strip.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc index 36a114e..a28ff52b 100644 --- a/chrome/browser/views/tabs/tab_strip.cc +++ b/chrome/browser/views/tabs/tab_strip.cc @@ -248,8 +248,7 @@ TabStrip::TabStrip(TabStripModel* model) available_width_for_tabs_(-1), animation_container_(new AnimationContainer()), ALLOW_THIS_IN_INITIALIZER_LIST(bounds_animator_(this)), - animation_type_(ANIMATION_DEFAULT), - new_tab_button_enabled_(true) { + animation_type_(ANIMATION_DEFAULT) { Init(); } @@ -522,12 +521,7 @@ void TabStrip::Layout() { for (int i = 0, tab_count = GetTabCount(); i < tab_count; ++i) tab_data_[i].tab->SetBounds(tab_data_[i].ideal_bounds); - if (new_tab_button_enabled_) { - newtab_button_->SetBounds(newtab_button_bounds_); - newtab_button_->SetVisible(true); - } else { - newtab_button_->SetVisible(false); - } + newtab_button_->SetBounds(newtab_button_bounds_); SchedulePaint(); } |