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); |
}; |