Index: components/bookmarks/browser/bookmark_model.cc |
diff --git a/components/bookmarks/browser/bookmark_model.cc b/components/bookmarks/browser/bookmark_model.cc |
index 60e143caf4f38ccb184bca21ef82b37750874da4..5809cb2e1b9f6a4f285bf4c5999152adb8db3f54 100644 |
--- a/components/bookmarks/browser/bookmark_model.cc |
+++ b/components/bookmarks/browser/bookmark_model.cc |
@@ -689,14 +689,25 @@ void BookmarkModel::ResetDateFolderModified(const BookmarkNode* node) { |
SetDateFolderModified(node, Time()); |
} |
-void BookmarkModel::GetBookmarksMatching( |
+void BookmarkModel::GetBookmarksMatching(const base::string16& text, |
+ size_t max_count, |
+ std::vector<BookmarkMatch>* matches) { |
+ if (!loaded_) |
+ return; |
+ |
+ index_->GetBookmarksMatching( |
+ text, max_count, false /* always_prefix_search */, matches); |
+} |
+ |
+void BookmarkModel::GetBookmarksMatchingPrefixes( |
const base::string16& text, |
size_t max_count, |
std::vector<BookmarkMatch>* matches) { |
if (!loaded_) |
return; |
- index_->GetBookmarksMatching(text, max_count, matches); |
+ index_->GetBookmarksMatching( |
+ text, max_count, true /* always_prefix_search */, matches); |
sky
2014/11/03 21:44:05
I'm not a fan of this style. It's a good indicatio
Kibeom Kim (inactive)
2014/11/04 01:28:19
Done.
|
} |
void BookmarkModel::ClearStore() { |