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

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: 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
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 3a3111e8261ac8cf25b47a048206114e22e4490c..5886c4a75c12f5292593cbfb6f4c2bf623ea9d90 100644
--- a/chrome/browser/ui/views/search_view_controller.cc
+++ b/chrome/browser/ui/views/search_view_controller.cc
@@ -601,7 +601,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