| Index: chrome/browser/ui/omnibox/omnibox_view.cc
|
| diff --git a/chrome/browser/ui/omnibox/omnibox_view.cc b/chrome/browser/ui/omnibox/omnibox_view.cc
|
| index f66cff677cc2366ade5188bce373d1f8d2f4f154..833cdfa7aa96a404c33c1b2a0acba7cf5ef0b944 100644
|
| --- a/chrome/browser/ui/omnibox/omnibox_view.cc
|
| +++ b/chrome/browser/ui/omnibox/omnibox_view.cc
|
| @@ -115,31 +115,6 @@ int OmniboxView::GetIcon() const {
|
| return (id == IDR_OMNIBOX_HTTP) ? IDR_LOCATION_BAR_HTTP : id;
|
| }
|
|
|
| -base::string16 OmniboxView::GetHintText() const {
|
| - // If the user is in keyword mode (the "Search <some site>:" chip is showing)
|
| - // then it doesn't make sense to show the "Search <default search engine>"
|
| - // hint text.
|
| - if (model_->is_keyword_selected())
|
| - return base::string16();
|
| -
|
| - // Attempt to determine the default search provider and use that in the hint
|
| - // text.
|
| - TemplateURLService* template_url_service =
|
| - TemplateURLServiceFactory::GetForProfile(model_->profile());
|
| - if (template_url_service) {
|
| - TemplateURL* template_url =
|
| - template_url_service->GetDefaultSearchProvider();
|
| - if (template_url)
|
| - return l10n_util::GetStringFUTF16(
|
| - IDS_OMNIBOX_EMPTY_HINT_WITH_DEFAULT_SEARCH_PROVIDER,
|
| - template_url->AdjustedShortNameForLocaleDirection());
|
| - }
|
| -
|
| - // Otherwise return a hint based on there being no default search provider.
|
| - return l10n_util::GetStringUTF16(
|
| - IDS_OMNIBOX_EMPTY_HINT_NO_DEFAULT_SEARCH_PROVIDER);
|
| -}
|
| -
|
| void OmniboxView::SetUserText(const base::string16& text) {
|
| SetUserText(text, text, true);
|
| }
|
|
|