| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 3bca4f8079c57a89d8c56f476551f4414fa2c424..4925e6ef43314b539ed1765a944d4bb8794de6d5 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -3507,15 +3507,6 @@ void Browser::ContentsZoomChange(bool zoom_in) {
|
| ExecuteCommand(zoom_in ? IDC_ZOOM_PLUS : IDC_ZOOM_MINUS);
|
| }
|
|
|
| -void Browser::SetTabContentBlocked(TabContents* contents, bool blocked) {
|
| - int index = tabstrip_model()->GetWrapperIndex(contents);
|
| - if (index == TabStripModel::kNoTab) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| - tabstrip_model()->SetTabBlocked(index, blocked);
|
| -}
|
| -
|
| void Browser::TabContentsFocused(TabContents* tab_content) {
|
| window_->TabContentsFocused(tab_content);
|
| }
|
| @@ -4157,6 +4148,15 @@ void Browser::SwapTabContents(TabContentsWrapper* old_tab_contents,
|
| new_tab_contents);
|
| }
|
|
|
| +void Browser::SetTabContentBlocked(TabContentsWrapper* wrapper, bool blocked) {
|
| + int index = tabstrip_model()->GetIndexOfTabContents(wrapper);
|
| + if (index == TabStripModel::kNoTab) {
|
| + NOTREACHED();
|
| + return;
|
| + }
|
| + tabstrip_model()->SetTabBlocked(index, blocked);
|
| +}
|
| +
|
| void Browser::SetSuggestedText(const string16& text,
|
| InstantCompleteBehavior behavior) {
|
| if (window()->GetLocationBar())
|
|
|