summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_match.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 11:08:52 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 11:08:52 +0000
commit8f740548afb0c225a1c32ac657bdf42c42beb8fe (patch)
treef361f62512b8ad4787f36e169d88ab8b39543e96 /chrome/browser/autocomplete/autocomplete_match.cc
parentecc685aa2623283c1dfec6192aa0f602748c32ab (diff)
downloadchromium_src-8f740548afb0c225a1c32ac657bdf42c42beb8fe.zip
chromium_src-8f740548afb0c225a1c32ac657bdf42c42beb8fe.tar.gz
chromium_src-8f740548afb0c225a1c32ac657bdf42c42beb8fe.tar.bz2
Show an Extension App icon in the omnibox for matches from the Extension App provider.
BUG=52444 TEST=Matches against title/url from Extension Apps should now have it's distinct Extension App icon as opposed to using the globe icon. Review URL: http://codereview.chromium.org/6811017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_match.cc')
-rw-r--r--chrome/browser/autocomplete/autocomplete_match.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_match.cc b/chrome/browser/autocomplete/autocomplete_match.cc
index e19f156..b68b514 100644
--- a/chrome/browser/autocomplete/autocomplete_match.cc
+++ b/chrome/browser/autocomplete/autocomplete_match.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -53,6 +53,7 @@ std::string AutocompleteMatch::TypeToString(Type type) {
"search-history",
"search-suggest",
"search-other-engine",
+ "extension-app",
};
DCHECK(arraysize(strings) == NUM_TYPES);
return strings[type];
@@ -71,6 +72,7 @@ int AutocompleteMatch::TypeToIcon(Type type) {
IDR_OMNIBOX_SEARCH,
IDR_OMNIBOX_SEARCH,
IDR_OMNIBOX_SEARCH,
+ IDR_OMNIBOX_EXTENSION_APP,
};
DCHECK(arraysize(icons) == NUM_TYPES);
return icons[type];