Index: chrome/browser/views/tabs/tab_strip.cc |
=================================================================== |
--- chrome/browser/views/tabs/tab_strip.cc (revision 36364) |
+++ chrome/browser/views/tabs/tab_strip.cc (working copy) |
@@ -1110,6 +1110,7 @@ |
tab->UpdateData(contents, false); |
} |
tab->set_pinned(model_->IsTabPinned(index)); |
+ tab->SetBlocked(model_->IsTabBlocked(index)); |
// We only add the tab to the child list if it's not already - an invisible |
// tab maintained by the DraggedTabController will already be parented. |
@@ -1160,6 +1161,7 @@ |
tab_data_.erase(tab_data_.begin() + from_index); |
TabData data = {tab, gfx::Rect()}; |
tab->set_pinned(model_->IsTabPinned(to_index)); |
+ tab->SetBlocked(model_->IsTabBlocked(to_index)); |
tab_data_.insert(tab_data_.begin() + to_index, data); |
if (pinned_state_changed) { |
StartPinAndMoveTabAnimation(from_index, to_index, start_bounds); |
@@ -1189,6 +1191,10 @@ |
StartPinnedTabAnimation(index); |
} |
+void TabStrip::TabBlockedStateChanged(TabContents* contents, int index) { |
+ GetTabAt(index)->SetBlocked(model_->IsTabBlocked(index)); |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
// TabStrip, Tab::Delegate implementation: |