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

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: More revisions, remove unneeded function Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
73 73
74 // Removes sync item matching |id| after item uninstall.
75 void RemoveUninstalledItem(const std::string& id);
76
74 // Called when properties of an item may have changed, e.g. default/oem state. 77 // Called when properties of an item may have changed, e.g. default/oem state.
75 void UpdateItem(AppListItem* app_item); 78 void UpdateItem(AppListItem* app_item);
76 79
77 // Returns the existing sync item matching |id| or NULL. 80 // Returns the existing sync item matching |id| or NULL.
78 const SyncItem* GetSyncItem(const std::string& id) const; 81 const SyncItem* GetSyncItem(const std::string& id) const;
79 82
80 // Sets the name of the folder for OEM apps. 83 // Sets the name of the folder for OEM apps.
81 void SetOemFolderName(const std::string& name); 84 void SetOemFolderName(const std::string& name);
82 85
83 Profile* profile() { return profile_; } 86 Profile* profile() { return profile_; }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 217
215 // Provides integration with Drive apps. 218 // Provides integration with Drive apps.
216 scoped_ptr<DriveAppProvider> drive_app_provider_; 219 scoped_ptr<DriveAppProvider> drive_app_provider_;
217 220
218 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); 221 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService);
219 }; 222 };
220 223
221 } // namespace app_list 224 } // namespace app_list
222 225
223 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 226 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698