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

Unified Diff: chrome/browser/ui/browser.cc

Issue 10944016: Switch SearchTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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()));
« no previous file with comments | « no previous file | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | chrome/browser/ui/search/search_tab_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698