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 406519e700a76d1b7e62bbee72587db6f79838e1..d04b3dfdfc3977c55ce88ee893e9b05270e089c1 100644 |
--- a/ui/app_list/app_list_switches.cc |
+++ b/ui/app_list/app_list_switches.cc |
@@ -9,6 +9,9 @@ |
namespace app_list { |
namespace switches { |
+// If set, the app list will be centered and wide instead of tall. |
+const char kCenterAppList[] = "center-app-list"; |
+ |
// Disables syncing of the app list independent of extensions. |
const char kDisableSyncAppList[] = "disable-sync-app-list"; |
@@ -18,13 +21,9 @@ const char kDisableVoiceSearch[] = "disable-app-list-voice-search"; |
// If set, the app info context menu item is available in the app list UI. |
const char kEnableAppInfo[] = "enable-app-list-app-info"; |
-// If set, the experimental app list will be used. |
+// If set, the experimental app list will be used. Implies --center-app-list. |
const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; |
-// If set, the experimental app list position will be used. |
-const char kEnableExperimentalAppListPosition[] = |
- "enable-experimental-app-list-position"; |
- |
// Enables syncing of the app list independent of extensions. |
const char kEnableSyncAppList[] = "enable-sync-app-list"; |
@@ -63,9 +62,8 @@ bool IsExperimentalAppListEnabled() { |
kEnableExperimentalAppList); |
} |
-bool IsExperimentalAppListPositionEnabled() { |
- return CommandLine::ForCurrentProcess()->HasSwitch( |
- kEnableExperimentalAppListPosition) || |
+bool IsAppListCentered() { |
+ return CommandLine::ForCurrentProcess()->HasSwitch(kCenterAppList) || |
IsExperimentalAppListEnabled(); |
} |