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

Unified Diff: chrome/browser/history/url_index_private_data.cc

Issue 255423002: Omnibox: Highlight Matches in URLs Properly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix OffsetsFromTermMatches test Created 6 years, 8 months 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 | « chrome/browser/history/scored_history_match.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/url_index_private_data.cc
diff --git a/chrome/browser/history/url_index_private_data.cc b/chrome/browser/history/url_index_private_data.cc
index d592f171d2f1cd350800d13d828f94ebcc7fb647..da204e9f2bbad502139ead076ee96de5cb3bf7f9 100644
--- a/chrome/browser/history/url_index_private_data.cc
+++ b/chrome/browser/history/url_index_private_data.cc
@@ -758,7 +758,7 @@ void URLIndexPrivateData::AddRowWordsToIndex(const URLRow& row,
// Split URL into individual, unique words then add in the title words.
const GURL& gurl(row.url());
const base::string16& url =
- bookmark_utils::CleanUpUrlForMatching(gurl, languages);
+ bookmark_utils::CleanUpUrlForMatching(gurl, languages, NULL);
String16Set url_words = String16SetFromString16(url,
word_starts ? &word_starts->url_word_starts_ : NULL);
const base::string16& title =
@@ -1240,8 +1240,8 @@ bool URLIndexPrivateData::RestoreWordStartsMap(
iter != history_info_map_.end(); ++iter) {
RowWordStarts word_starts;
const URLRow& row(iter->second.url_row);
- const base::string16& url =
- bookmark_utils::CleanUpUrlForMatching(row.url(), languages);
+ const base::string16& url = bookmark_utils::CleanUpUrlForMatching(
+ row.url(), languages, NULL);
String16VectorFromString16(url, false, &word_starts.url_word_starts_);
const base::string16& title =
bookmark_utils::CleanUpTitleForMatching(row.title());
« no previous file with comments | « chrome/browser/history/scored_history_match.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698