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

Unified Diff: ui/app_list/search/mixer.h

Issue 1139493004: Minor refactor to support experiments in AppListMixer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@applist-tokenized-exponential
Patch Set: Fix compile. Created 5 years, 7 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/ui/app_list/search/search_controller_factory.cc ('k') | ui/app_list/search/mixer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search/mixer.h
diff --git a/ui/app_list/search/mixer.h b/ui/app_list/search/mixer.h
index 7de0c1141a6926226a561c14d4487b74c7664005..1322057545ce60e1465242cac7326781741fa406 100644
--- a/ui/app_list/search/mixer.h
+++ b/ui/app_list/search/mixer.h
@@ -75,7 +75,10 @@ class APP_LIST_EXPORT Mixer {
static void Publish(const SortedResults& results,
AppListModel::SearchResults* ui_results);
- // Removes duplicates from |results|.
+ // Removes entries from |results| with duplicate IDs. When two or more results
+ // have the same ID, the earliest one in the |results| list is kept.
+ // NOTE: This is not necessarily the one with the highest *score*, as
+ // |results| may not have been sorted yet.
static void RemoveDuplicates(SortedResults* results);
void FetchResults(bool is_voice_query, const KnownResults& known_results);
« no previous file with comments | « chrome/browser/ui/app_list/search/search_controller_factory.cc ('k') | ui/app_list/search/mixer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698