Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: components/history/core/browser/url_database.cc

Issue 703553002: Allow systematic prefix search in bookmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: put missing "M" back Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/bookmarks/browser/bookmark_utils.cc ('k') | components/query_parser/query_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/url_database.cc
diff --git a/components/history/core/browser/url_database.cc b/components/history/core/browser/url_database.cc
index 35307074cd7eeff399ea8d9627835aacef1f40fd..fc3bb945fa0b7f7aa69a44cfbe58688d577bf4f9 100644
--- a/components/history/core/browser/url_database.cc
+++ b/components/history/core/browser/url_database.cc
@@ -357,7 +357,8 @@ bool URLDatabase::FindShortestURLFromBase(const std::string& base,
bool URLDatabase::GetTextMatches(const base::string16& query,
URLRows* results) {
ScopedVector<query_parser::QueryNode> query_nodes;
- query_parser_.ParseQueryNodes(query, &query_nodes.get());
+ query_parser_.ParseQueryNodes(
+ query, query_parser::MatchingAlgorithm::DEFAULT, &query_nodes.get());
results->clear();
sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE,
« no previous file with comments | « components/bookmarks/browser/bookmark_utils.cc ('k') | components/query_parser/query_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698