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

Unified Diff: chrome/browser/autocomplete/history_quick_provider.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/history_quick_provider.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc
index e977ab1b0b41cda91057d6b89d7588cbbf13a754..74f59f6b04ba9170fe749503783cafaddc359e73 100644
--- a/chrome/browser/autocomplete/history_quick_provider.cc
+++ b/chrome/browser/autocomplete/history_quick_provider.cc
@@ -46,10 +46,6 @@
#include "url/url_parse.h"
#include "url/url_util.h"
-using history::InMemoryURLIndex;
-using history::ScoredHistoryMatch;
-using history::ScoredHistoryMatches;
-
namespace {
// Returns whether |url| is bookmarked in |bookmark_model| (which can be null
@@ -268,7 +264,7 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
info.url(), languages_, format_types, net::UnescapeRule::SPACES, NULL,
NULL, &adjustments);
base::OffsetAdjuster::AdjustOffsets(adjustments, &offsets);
- history::TermMatches new_matches =
+ TermMatches new_matches =
ReplaceOffsetsInTermMatches(history_match.url_matches, offsets);
match.contents_class =
SpansFromTermMatch(new_matches, match.contents.length(), true);
@@ -305,7 +301,7 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
return match;
}
-history::InMemoryURLIndex* HistoryQuickProvider::GetIndex() {
+InMemoryURLIndex* HistoryQuickProvider::GetIndex() {
if (index_for_testing_.get())
return index_for_testing_.get();

Powered by Google App Engine
This is Rietveld 408576698