Commit 555d93eb authored by Samusaaron3@gmail.com's avatar Samusaaron3@gmail.com

Remove "Search" suffix from omnibox search engine match

Example (new on top, old on bottom): http://imgur.com/a/vx7pW

BUG=99426

Review URL: https://chromiumcodereview.appspot.com/16019014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203052 0039d316-1c4b-4281-b951-d872f2087c98
parent e989af81
...@@ -561,9 +561,14 @@ void AutocompleteController::UpdateKeywordDescriptions( ...@@ -561,9 +561,14 @@ void AutocompleteController::UpdateKeywordDescriptions(
if (i->keyword != last_keyword) { if (i->keyword != last_keyword) {
const TemplateURL* template_url = i->GetTemplateURL(profile_, false); const TemplateURL* template_url = i->GetTemplateURL(profile_, false);
if (template_url) { if (template_url) {
i->description = l10n_util::GetStringFUTF16( // For extension keywords, just make the description the extension
IDS_AUTOCOMPLETE_SEARCH_DESCRIPTION, // name -- don't assume that the normal search keyword description is
template_url->AdjustedShortNameForLocaleDirection()); // applicable.
i->description = template_url->AdjustedShortNameForLocaleDirection();
if (!template_url->IsExtensionKeyword()) {
i->description = l10n_util::GetStringFUTF16(
IDS_AUTOCOMPLETE_SEARCH_DESCRIPTION, i->description);
}
i->description_class.push_back( i->description_class.push_back(
ACMatchClassification(0, ACMatchClassification::DIM)); ACMatchClassification(0, ACMatchClassification::DIM));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment