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

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: Another round of revisions 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..0bfd790dceacb60258669f97ad4d61de782f9902 100644
--- a/ui/app_list/app_list_model.h
+++ b/ui/app_list/app_list_model.h
@@ -125,6 +125,10 @@ class APP_LIST_EXPORT AppListModel : public AppListItemListObserver {
// appropriate folder.
void DeleteItem(const std::string& id);
+ // Wrapper around DeleteItem() which will also clean up if its parent folder
+ // has a single child left.
+ void DeleteUninstalledItem(const std::string& id);
+
// Call OnExtensionPreferenceChanged() for all items in the model.
void NotifyExtensionPreferenceChanged();

Powered by Google App Engine
This is Rietveld 408576698