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

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: 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..bd490ad499b374c17657db03df2054f2cf6a7bf9 100644
--- a/chrome/browser/ui/app_list/app_list_syncable_service.cc
+++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc
@@ -479,9 +479,13 @@ void AppListSyncableService::UpdateSyncItem(AppListItem* app_item) {
SendSyncChange(sync_item, SyncChange::ACTION_UPDATE);
}
-void AppListSyncableService::RemoveItem(const std::string& id) {
+void AppListSyncableService::RemoveItem(const std::string& id,
+ bool uninstalled) {
RemoveSyncItem(id);
- model_->DeleteItem(id);
+ if (uninstalled)
+ model_->DeleteUninstalledItem(id);
+ else
+ model_->DeleteItem(id);
PruneEmptySyncFolders();
}

Powered by Google App Engine
This is Rietveld 408576698