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

Unified Diff: chrome/browser/ui/app_list/app_list_syncable_service.cc

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: chrome/browser/ui/app_list/app_list_syncable_service.cc
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service.cc b/chrome/browser/ui/app_list/app_list_syncable_service.cc
index 9dd44d63232d59b82f0ad308d705dc9c1af0b1f5..874934ab4c1ea29391cb976d072feed5627d1413 100644
--- a/chrome/browser/ui/app_list/app_list_syncable_service.cc
+++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc
@@ -485,6 +485,12 @@ void AppListSyncableService::RemoveItem(const std::string& id) {
PruneEmptySyncFolders();
}
+void AppListSyncableService::RemoveUninstalledItem(const std::string& id) {
+ RemoveSyncItem(id);
+ model_->DeleteUninstalledItem(id);
+ PruneEmptySyncFolders();
+}
+
void AppListSyncableService::UpdateItem(AppListItem* app_item) {
// Check to see if the item needs to be moved to/from the OEM folder.
if (!app_list::switches::IsFolderUIEnabled())

Powered by Google App Engine
This is Rietveld 408576698