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

Unified Diff: ui/app_list/app_list_model.h

Issue 1003393002: After uninstall, remove last item in Launcher folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: ui/app_list/app_list_model.h
diff --git a/ui/app_list/app_list_model.h b/ui/app_list/app_list_model.h
index 6c61e71d68ebbed73c6a0c9c23dd195ef2ad5cdf..3b74ce93a7c19071819c5a283086f3827c767e99 100644
--- a/ui/app_list/app_list_model.h
+++ b/ui/app_list/app_list_model.h
@@ -107,6 +107,10 @@ class APP_LIST_EXPORT AppListModel : public AppListItemListObserver {
const std::string& folder_id,
syncer::StringOrdinal position);
+ // Wrapper around DeleteItem() which will also notify its parent folder; this
+ // allows observer to clean up folder with a single item remaining.
stevenjb 2015/03/23 19:34:30 nit: observers, folders
Greg Levin 2015/03/23 22:04:50 Done.
+ void DeleteUninstalledItem(const std::string& id);
+
// Sets the position of |item| either in |top_level_item_list_| or the folder
// specified by |item|->folder_id(). If |new_position| is invalid, move the
// item to the end of the list.

Powered by Google App Engine
This is Rietveld 408576698