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

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

Issue 10951008: Switch OmniboxSearchHint 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
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_contents/tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
index b035de4c5ce65d79dced5822e5b890d58559696f..8c0b52928927a93f64b6e539e5590c54126fe6e8 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -166,6 +166,8 @@ TabContents::TabContents(WebContents* contents)
#endif
#if !defined(OS_ANDROID)
+ if (OmniboxSearchHint::IsEnabled(profile()))
+ OmniboxSearchHint::CreateForWebContents(contents);
PDFTabHelper::CreateForWebContents(contents);
sad_tab_helper_.reset(new SadTabHelper(contents));
web_intent_picker_controller_.reset(new WebIntentPickerController(this));
@@ -180,11 +182,6 @@ TabContents::TabContents(WebContents* contents)
webnavigation_observer_.reset(
new extensions::WebNavigationTabObserver(contents));
-#if !defined(OS_ANDROID)
- if (OmniboxSearchHint::IsEnabled(profile()))
- omnibox_search_hint_.reset(new OmniboxSearchHint(this));
-#endif
-
#if defined(ENABLE_PRINTING)
print_view_manager_.reset(new printing::PrintViewManager(this));
print_preview_.reset(new printing::PrintPreviewMessageHandler(contents));
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698