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

Unified Diff: ui/app_list/app_list_switches.cc

Issue 212223012: Disable app list folders by default for non-ChromeOS platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« chrome/browser/about_flags.cc ('K') | « ui/app_list/app_list_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« chrome/browser/about_flags.cc ('K') | « ui/app_list/app_list_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698