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

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

Issue 701553002: Allow systematic prefix search in bookmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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..b19453f62a722e457b03fcd32d082fc40d6fdc3d 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, false /* always_prefix_search */, &query_nodes.get());
results->clear();
sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698