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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.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/omnibox/omnibox_edit_model.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index 60e361b80e9fdb330307f03a3704008e8ff3a1d5..ec8d70e4fb981927b5fe83549dc6b21123298811 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -1116,8 +1116,9 @@ bool OmniboxEditModel::CreatedKeywordSearchByInsertingSpaceInMiddle(
void OmniboxEditModel::NotifySearchTabHelper() {
if (controller_->GetTabContents()) {
- controller_->GetTabContents()->search_tab_helper()->
- OmniboxEditModelChanged(user_input_in_progress_, !in_revert_);
+ chrome::search::SearchTabHelper::FromWebContents(
+ controller_->GetTabContents()->web_contents())->
+ OmniboxEditModelChanged(user_input_in_progress_, !in_revert_);
}
}

Powered by Google App Engine
This is Rietveld 408576698