summaryrefslogtreecommitdiffstats
path: root/ash/shell
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-09 16:54:50 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-09 16:54:50 +0000
commit4de885681dfb6e305fdd58f2d9107d8df406d297 (patch)
treec37820bd04f1482ea84609523922e568ebc1402c /ash/shell
parent02e09be3d38307d02e63491521288a7448bb9d4a (diff)
downloadchromium_src-4de885681dfb6e305fdd58f2d9107d8df406d297.zip
chromium_src-4de885681dfb6e305fdd58f2d9107d8df406d297.tar.gz
chromium_src-4de885681dfb6e305fdd58f2d9107d8df406d297.tar.bz2
base::i18n::StringSearch...() returns match index and length
Update base::i18n::StringSearchIgnoringCaseAndAccents() to take additional out-params for the index and length of the matched text. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10910116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell')
-rw-r--r--ash/shell/app_list.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc
index 0ad18aa..cd3a0fa 100644
--- a/ash/shell/app_list.cc
+++ b/ash/shell/app_list.cc
@@ -262,8 +262,10 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
static_cast<WindowTypeLauncherItem::Type>(i);
string16 title = UTF8ToUTF16(WindowTypeLauncherItem::GetTitle(type));
- if (base::i18n::StringSearchIgnoringCaseAndAccents(query, title))
+ if (base::i18n::StringSearchIgnoringCaseAndAccents(
+ query, title, NULL, NULL)) {
model_->results()->Add(new ExampleSearchResult(type, query));
+ }
}
}