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

Unified Diff: components/omnibox/browser/history_url_provider_unittest.cc

Issue 1877833002: Optimize shortcuts provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes after review, round 2 Created 4 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
Index: components/omnibox/browser/history_url_provider_unittest.cc
diff --git a/components/omnibox/browser/history_url_provider_unittest.cc b/components/omnibox/browser/history_url_provider_unittest.cc
index 00c0b53d0fc6a379ebd7de983b8cb743f456ef64..b076654e8a01f26db34d223578abcd21da953690 100644
--- a/components/omnibox/browser/history_url_provider_unittest.cc
+++ b/components/omnibox/browser/history_url_provider_unittest.cc
@@ -340,8 +340,8 @@ void HistoryURLProviderTest::RunTest(
i->ComputeStrippedDestinationURL(
input, client_->GetAcceptLanguages(), service);
}
- AutocompleteResult::DedupMatchesByDestination(
- input.current_page_classification(), false, &matches_);
+ AutocompleteResult::SortAndDedupMatches(input.current_page_classification(),
+ &matches_);
std::sort(matches_.begin(), matches_.end(),
&AutocompleteMatch::MoreRelevant);
}

Powered by Google App Engine
This is Rietveld 408576698