Chromium Code Reviews| 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..e10434f7aae12d1170305dd908e616815c4c249f 100644 |
| --- a/ui/app_list/app_list_switches.cc |
| +++ b/ui/app_list/app_list_switches.cc |
| @@ -18,12 +18,12 @@ 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. |
| -const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; |
| +// If set, the app list will be centered and wide instead of tall. |
| +const char kEnableCenteredAppList[] = "enable-centered-app-list"; |
| -// If set, the experimental app list position will be used. |
| -const char kEnableExperimentalAppListPosition[] = |
| - "enable-experimental-app-list-position"; |
| +// If set, the experimental app list will be used. Implies |
| +// --enable-centered-app-list. |
| +const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; |
| // Enables syncing of the app list independent of extensions. |
| const char kEnableSyncAppList[] = "enable-sync-app-list"; |
| @@ -63,9 +63,8 @@ bool IsExperimentalAppListEnabled() { |
| kEnableExperimentalAppList); |
| } |
| -bool IsExperimentalAppListPositionEnabled() { |
| - return CommandLine::ForCurrentProcess()->HasSwitch( |
| - kEnableExperimentalAppListPosition) || |
| +bool IsAppListCentered() { |
|
benwells
2014/05/02 05:52:38
Nit: rename to IsCenteredAppListEnabled.
Matt Giuca
2014/05/02 06:06:30
Done.
|
| + return CommandLine::ForCurrentProcess()->HasSwitch(kEnableCenteredAppList) || |
| IsExperimentalAppListEnabled(); |
| } |