| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 5b5127b51c3893066ab3ad05c7dafc9c08bc45c4..7bf02acbeea264436d75c453ccd0ee203a5f68dd 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1045,7 +1045,7 @@ void Browser::TabDetachedAt(TabContents* contents, int index) {
|
|
|
| void Browser::TabDeactivated(TabContents* contents) {
|
| fullscreen_controller_->OnTabDeactivated(contents);
|
| - search_delegate_->OnTabDeactivated(contents);
|
| + search_delegate_->OnTabDeactivated(contents->web_contents());
|
|
|
| // Save what the user's currently typing, so it can be restored when we
|
| // switch back to this tab.
|
| @@ -1913,7 +1913,7 @@ void Browser::UpdateToolbar(bool should_restore_state) {
|
|
|
| void Browser::UpdateSearchState(TabContents* contents) {
|
| if (chrome::search::IsInstantExtendedAPIEnabled(profile_))
|
| - search_delegate_->OnTabActivated(contents);
|
| + search_delegate_->OnTabActivated(contents->web_contents());
|
| }
|
|
|
| void Browser::ScheduleUIUpdate(const WebContents* source,
|
| @@ -2128,7 +2128,7 @@ void Browser::TabDetachedAtImpl(TabContents* contents, int index,
|
| }
|
|
|
| // Stop observing search model changes for this tab.
|
| - search_delegate_->OnTabDetached(contents);
|
| + search_delegate_->OnTabDetached(contents->web_contents());
|
|
|
| registrar_.Remove(this, content::NOTIFICATION_INTERSTITIAL_ATTACHED,
|
| content::Source<WebContents>(contents->web_contents()));
|
|
|