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

Unified Diff: chrome/browser/ui/views/search_view_controller.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/views/search_view_controller.cc
diff --git a/chrome/browser/ui/views/search_view_controller.cc b/chrome/browser/ui/views/search_view_controller.cc
index 92715874c0a6315f2bfd2a653b11c48f5b9a4ce8..17512aac4df4518810413a8bb7752126b5ec4b18 100644
--- a/chrome/browser/ui/views/search_view_controller.cc
+++ b/chrome/browser/ui/views/search_view_controller.cc
@@ -603,7 +603,9 @@ void SearchViewController::MaybeHideOverlay() {
}
chrome::search::SearchModel* SearchViewController::search_model() {
- return tab_contents_ ? tab_contents_->search_tab_helper()->model() : NULL;
+ return tab_contents_ ? chrome::search::SearchTabHelper::FromWebContents(
+ tab_contents_->web_contents())->model()
+ : NULL;
}
content::WebContents* SearchViewController::web_contents() {

Powered by Google App Engine
This is Rietveld 408576698