diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 16:17:20 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 16:17:20 +0000 |
commit | 81415229bc291e102450807f4a1fb868f7c0413a (patch) | |
tree | a455aa48309b7b0f2f74b0f7818c62b655b98786 /chrome/browser/autocomplete | |
parent | df0659bd984865987412a48bd6b1ce49f6876247 (diff) | |
download | chromium_src-81415229bc291e102450807f4a1fb868f7c0413a.zip chromium_src-81415229bc291e102450807f4a1fb868f7c0413a.tar.gz chromium_src-81415229bc291e102450807f4a1fb868f7c0413a.tar.bz2 |
Convert strings in bookmarks, part 2.
This eliminates the wstring version of
BookmarkModel::GetBookmarksWithTitleMatchingTerm(). It also converts a pile of
wide strings in bookmark_model_unittest.cc.
BUG=23581
TEST=builds and passes tests
Review URL: http://codereview.chromium.org/3141024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/history_contents_provider.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.cc b/chrome/browser/autocomplete/history_contents_provider.cc index 947f0be..3e4917a 100644 --- a/chrome/browser/autocomplete/history_contents_provider.cc +++ b/chrome/browser/autocomplete/history_contents_provider.cc @@ -267,8 +267,8 @@ void HistoryContentsProvider::QueryBookmarks(const AutocompleteInput& input) { TimeTicks start_time = TimeTicks::Now(); std::vector<bookmark_utils::TitleMatch> matches; - bookmark_model->GetBookmarksWithTitlesMatching(input.text(), kMaxMatches, - &matches); + bookmark_model->GetBookmarksWithTitlesMatching(WideToUTF16Hack(input.text()), + kMaxMatches, &matches); for (size_t i = 0; i < matches.size(); ++i) AddBookmarkTitleMatchToResults(matches[i]); UMA_HISTOGRAM_TIMES("Omnibox.QueryBookmarksTime", |