diff options
author | cdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 18:00:54 +0000 |
---|---|---|
committer | cdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 18:00:54 +0000 |
commit | 55954d890dd1f817ea7f49374f1de14d826b2fa4 (patch) | |
tree | dd9f64a4d64642a6d9d5c8de019dc5c778016071 /chrome/browser/autocomplete/history_quick_provider.cc | |
parent | 6df44fb660221182373b00ad27840040167205d7 (diff) | |
download | chromium_src-55954d890dd1f817ea7f49374f1de14d826b2fa4.zip chromium_src-55954d890dd1f817ea7f49374f1de14d826b2fa4.tar.gz chromium_src-55954d890dd1f817ea7f49374f1de14d826b2fa4.tar.bz2 |
Commiting second word iterator patch for tsepez. this was originally reviewed at http://codereview.chromium.org/5796003/
Review URL: http://codereview.chromium.org/5707011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_quick_provider.cc')
-rw-r--r-- | chrome/browser/autocomplete/history_quick_provider.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc index fbd12bd..82219b2f1 100644 --- a/chrome/browser/autocomplete/history_quick_provider.cc +++ b/chrome/browser/autocomplete/history_quick_provider.cc @@ -5,7 +5,7 @@ #include "chrome/browser/autocomplete/history_quick_provider.h" #include "base/basictypes.h" -#include "base/i18n/word_iterator.h" +#include "base/i18n/break_iterator.h" #include "base/string_util.h" #include "base/logging.h" #include "base/utf_string_conversions.h" @@ -167,11 +167,11 @@ void HistoryQuickProvider::SetIndexForTesting( history::InMemoryURLIndex::String16Vector HistoryQuickProvider::WordVectorFromString16(const string16& uni_string) { history::InMemoryURLIndex::String16Vector words; - WordIterator iter(&uni_string, WordIterator::BREAK_WORD); + base::BreakIterator iter(&uni_string, base::BreakIterator::BREAK_WORD); if (iter.Init()) { while (iter.Advance()) { if (iter.IsWord()) - words.push_back(iter.GetWord()); + words.push_back(iter.GetString()); } } return words; |