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

Unified Diff: components/omnibox/browser/autocomplete_result.h

Issue 1877833002: Optimize shortcuts provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted rename of ShortcutMatchToACMatch to ShortcutToACMatch 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/autocomplete_result.h
diff --git a/components/omnibox/browser/autocomplete_result.h b/components/omnibox/browser/autocomplete_result.h
index 979d2ec0843d93a584b69e70dc6f09bd337885e2..5c8139970c2f5403c418651cbe3e394df2fe159a 100644
--- a/components/omnibox/browser/autocomplete_result.h
+++ b/components/omnibox/browser/autocomplete_result.h
@@ -128,12 +128,11 @@ class AutocompleteResult {
// Sort |matches| by destination, taking into account demotions based on
// |page_classification| when resolving ties about which of several
- // duplicates to keep. The matches are also deduplicated. If
- // |set_duplicate_matches| is true, the duplicate matches are stored in the
- // |duplicate_matches| vector of the corresponding AutocompleteMatch.
- static void DedupMatchesByDestination(
+ // duplicates to keep. The matches are also deduplicated. Duplicate matches
+ // are stored in the |duplicate_matches| vector of the corresponding
+ // AutocompleteMatch.
+ static void SortAndDedupMatches(
metrics::OmniboxEventProto::PageClassification page_classification,
- bool set_duplicate_matches,
ACMatches* matches);
private:

Powered by Google App Engine
This is Rietveld 408576698