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

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

Issue 2317523003: [Merge-M54] arc: Don't sync app list change caused by Arc opt out. (Closed)
Patch Set: Created 4 years, 3 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_model_builder.cc
diff --git a/chrome/browser/ui/app_list/app_list_model_builder.cc b/chrome/browser/ui/app_list/app_list_model_builder.cc
index b223dee321b50fea3a0d08ac743fe913b313bf78..eba94fe075e93dfec8a95fc031bc82c85dc58ffc 100644
--- a/chrome/browser/ui/app_list/app_list_model_builder.cc
+++ b/chrome/browser/ui/app_list/app_list_model_builder.cc
@@ -51,8 +51,9 @@ void AppListModelBuilder::InsertApp(
model_->AddItem(std::move(app));
}
-void AppListModelBuilder::RemoveApp(const std::string& id) {
- if (service_) {
+void AppListModelBuilder::RemoveApp(const std::string& id,
+ bool unsynced_change) {
+ if (!unsynced_change && service_) {
service_->RemoveUninstalledItem(id);
return;
}
« no previous file with comments | « chrome/browser/ui/app_list/app_list_model_builder.h ('k') | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698