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

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: const 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
« no previous file with comments | « no previous file | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index aa5efc0fd4c3e9e9ad9f0c40f291be291ee3b884..044cf017b77b4c91f9d511f0673d5f3e3a8cdb1a 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.
@@ -1914,7 +1914,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,
@@ -2129,7 +2129,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698