summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_match.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 23:07:58 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 23:07:58 +0000
commit24d692aa555b5673c3d6eb37252b6eec19f439b5 (patch)
treebba53e8a8d7f03763a471c01a964ed7cb1de3b0b /chrome/browser/autocomplete/autocomplete_match.cc
parent303fed514d6dd1c6ff694c4f7613300a8d05343d (diff)
downloadchromium_src-24d692aa555b5673c3d6eb37252b6eec19f439b5.zip
chromium_src-24d692aa555b5673c3d6eb37252b6eec19f439b5.tar.gz
chromium_src-24d692aa555b5673c3d6eb37252b6eec19f439b5.tar.bz2
Make the app provider match highlighting use the existing ClassifyMatchXXX() machinery, and set the correct base styles (NONE rather than DIM for the contents, and URL rather than DIM for the description).
This also switches from UTF-8 to UTF-16 for various temps/members since that's the destination encoding for the various AutocompleteMatch fields. BUG=none TEST=App matches in omnibox should have undimmed names and green URLs. Review URL: http://codereview.chromium.org/7031058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86735 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_match.cc')
-rw-r--r--chrome/browser/autocomplete/autocomplete_match.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_match.cc b/chrome/browser/autocomplete/autocomplete_match.cc
index b68b514..59fa925 100644
--- a/chrome/browser/autocomplete/autocomplete_match.cc
+++ b/chrome/browser/autocomplete/autocomplete_match.cc
@@ -117,6 +117,7 @@ void AutocompleteMatch::ClassifyMatchInString(
text.length(), style, classification);
}
+// static
void AutocompleteMatch::ClassifyLocationInString(
size_t match_location,
size_t match_length,