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

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: Move work from views to model, as per reviewer comment 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..c37cccccebc68f3c96616e7b3243b67c9a0a539e 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 clean up if its parent folder
+ // has a single child left.
+ void DeleteUninstalledItem(const std::string& id);
stevenjb 2015/03/25 22:24:01 nit: Move this below DeleteItem here and in the .c
Greg Levin 2015/03/26 19:45:11 Done.
+
// 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