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

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

Issue 369693004: Make app list search result mixer more resilient to reordering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 5 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 | « no previous file | chrome/browser/ui/app_list/search/mixer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/search/mixer.h
diff --git a/chrome/browser/ui/app_list/search/mixer.h b/chrome/browser/ui/app_list/search/mixer.h
index b7e16415f45c6856b5a9ef028f6ef786e72d4c3e..c555145fc79f2a5ac2c45f7b88ea86a4b8ee7ebb 100644
--- a/chrome/browser/ui/app_list/search/mixer.h
+++ b/chrome/browser/ui/app_list/search/mixer.h
@@ -67,8 +67,9 @@ class Mixer {
class Group;
typedef ScopedVector<Group> Groups;
- // Publishes the given |results| to |ui_results|. Reuse existing ones to avoid
- // flickering.
+ // Publishes the given |new_results| to |ui_results|, deleting any existing
+ // results that are not in |new_results|. Results that already exist in
+ // |ui_results| are reused to avoid flickering caused by icon reload.
static void Publish(const SortedResults& results,
AppListModel::SearchResults* ui_results);
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/mixer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698