Index: ui/app_list/app_list_switches.cc |
diff --git a/ui/app_list/app_list_switches.cc b/ui/app_list/app_list_switches.cc |
index a7e909feffdb4fddddc5537f2d80e001ba116531..c3d52d9813d230d2eceefefa3098b8d2d28bf5c6 100644 |
--- a/ui/app_list/app_list_switches.cc |
+++ b/ui/app_list/app_list_switches.cc |
@@ -25,13 +25,20 @@ const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; |
const char kEnableExperimentalAppListPosition[] = |
"enable-experimental-app-list-position"; |
+// If set, folders will be enabled in the app list UI. |
+const char kEnableFolderUI[] = "enable-app-list-folder-ui"; |
+ |
// If set, it will always listen to the audio locally and open the app-list |
// when the hotword is recognized. |
const char kEnableHotwordAlwaysOn[] = "enable-app-list-hotword-always-on"; |
// Folder UI is enabled by default. |
bool IsFolderUIEnabled() { |
+#if defined(OS_CHROMEOS) |
return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableFolderUI); |
+#else |
+ return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI); |
+#endif |
} |
bool IsVoiceSearchEnabled() { |