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

Unified Diff: ui/app_list/app_list_model.h

Issue 305013014: Disable folder UI when app sync is disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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: ui/app_list/app_list_model.h
diff --git a/ui/app_list/app_list_model.h b/ui/app_list/app_list_model.h
index 1da8506dfd16e061870f8d57aab8cff856ee9f62..9caa323bcd2dc1cd1bd664975edf16f85d389f12 100644
--- a/ui/app_list/app_list_model.h
+++ b/ui/app_list/app_list_model.h
@@ -112,11 +112,16 @@ class APP_LIST_EXPORT AppListModel : public AppListItemListObserver {
// Call OnExtensionPreferenceChanged() for all items in the model.
void NotifyExtensionPreferenceChanged();
+ // Sets wither or not folder UI should be enabled. If |folders_enabled| is
+ // false, removes any non-OEM folders.
+ void SetFoldersEnabled(bool folders_enabled);
+
AppListItemList* top_level_item_list() { return top_level_item_list_.get(); }
SearchBoxModel* search_box() { return search_box_.get(); }
SearchResults* results() { return results_.get(); }
Status status() const { return status_; }
+ bool folders_enabled() const { return folders_enabled_; }
private:
// AppListItemListObserver
@@ -157,6 +162,7 @@ class APP_LIST_EXPORT AppListModel : public AppListItemListObserver {
Status status_;
ObserverList<AppListModelObserver> observers_;
+ bool folders_enabled_;
DISALLOW_COPY_AND_ASSIGN(AppListModel);
};

Powered by Google App Engine
This is Rietveld 408576698