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

Side by Side Diff: chrome/browser/ui/app_list/app_list_syncable_service.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 AppListSyncableService(Profile* profile, 62 AppListSyncableService(Profile* profile,
63 extensions::ExtensionSystem* extension_system); 63 extensions::ExtensionSystem* extension_system);
64 64
65 ~AppListSyncableService() override; 65 ~AppListSyncableService() override;
66 66
67 // Adds |item| to |sync_items_| and |model_|. If a sync item already exists, 67 // Adds |item| to |sync_items_| and |model_|. If a sync item already exists,
68 // updates the existing sync item instead. 68 // updates the existing sync item instead.
69 void AddItem(scoped_ptr<AppListItem> app_item); 69 void AddItem(scoped_ptr<AppListItem> app_item);
70 70
71 // Removes sync item matching |id|. 71 // Removes sync item matching |id|.
72 void RemoveItem(const std::string& id); 72 void RemoveItem(const std::string& id, bool uninstalled);
stevenjb 2015/03/23 19:34:30 I think this would be better as two separate metho
Greg Levin 2015/03/23 22:04:50 Done.
73 73
74 // Called when properties of an item may have changed, e.g. default/oem state. 74 // Called when properties of an item may have changed, e.g. default/oem state.
75 void UpdateItem(AppListItem* app_item); 75 void UpdateItem(AppListItem* app_item);
76 76
77 // Returns the existing sync item matching |id| or NULL. 77 // Returns the existing sync item matching |id| or NULL.
78 const SyncItem* GetSyncItem(const std::string& id) const; 78 const SyncItem* GetSyncItem(const std::string& id) const;
79 79
80 // Sets the name of the folder for OEM apps. 80 // Sets the name of the folder for OEM apps.
81 void SetOemFolderName(const std::string& name); 81 void SetOemFolderName(const std::string& name);
82 82
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 // Provides integration with Drive apps. 215 // Provides integration with Drive apps.
216 scoped_ptr<DriveAppProvider> drive_app_provider_; 216 scoped_ptr<DriveAppProvider> drive_app_provider_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); 218 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService);
219 }; 219 };
220 220
221 } // namespace app_list 221 } // namespace app_list
222 222
223 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 223 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | ui/app_list/app_list_model.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698