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

Unified Diff: chrome/browser/autocomplete/in_memory_url_index_types.cc

Issue 959343004: Move InMemoryURLIndex outside of history namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@in-memory-url-index
Patch Set: Created 5 years, 10 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
Index: chrome/browser/autocomplete/in_memory_url_index_types.cc
diff --git a/chrome/browser/autocomplete/in_memory_url_index_types.cc b/chrome/browser/autocomplete/in_memory_url_index_types.cc
index bb64822686cd1d3013c016e8a6e76c2512f67f9b..e0f8b82ad279c278e82e2e03ea64218493ba012a 100644
--- a/chrome/browser/autocomplete/in_memory_url_index_types.cc
+++ b/chrome/browser/autocomplete/in_memory_url_index_types.cc
@@ -16,7 +16,11 @@
#include "net/base/escape.h"
#include "net/base/net_util.h"
-namespace history {
+namespace {
+// The maximum number of characters to consider from an URL and page title
+// while matching user-typed terms.
+const size_t kMaxSignificantChars = 200;
+}
// Matches within URL and Title Strings ----------------------------------------
@@ -159,5 +163,3 @@ void RowWordStarts::Clear() {
url_word_starts_.clear();
title_word_starts_.clear();
}
-
-} // namespace history

Powered by Google App Engine
This is Rietveld 408576698