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 77a72f032dd66480f2ae4a3e8846f437f7a06014..ca0f34c958df97d0d23092f6c28270980336ee5c 100644 |
| --- a/ui/app_list/app_list_switches.cc |
| +++ b/ui/app_list/app_list_switches.cc |
| @@ -9,21 +9,24 @@ |
| namespace app_list { |
| namespace switches { |
| -// If set, the experimental app list will be used. |
| -const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; |
| - |
| // If set, folder will be disabled in app list UI. |
| const char kDisableFolderUI[] = "disable-app-list-folder-ui"; |
| // If set, the voice search is disabled in app list UI. |
| 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, 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"; |
| -// 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 app list will show the start page webui. |
| +const char kShowAppListStartPage[] = "show-app-list-start-page"; |
|
xiyuan
2014/03/14 17:00:54
Can we get rid of this and use just kEnableExperim
calamity
2014/05/07 06:11:52
Done.
|
| // Folder UI is enabled by default. |
| bool IsFolderUIEnabled() { |
| @@ -57,5 +60,9 @@ bool IsExperimentalAppListEnabled() { |
| kEnableExperimentalAppList); |
| } |
| +bool IsStartPageWebUIEnabled() { |
| + return CommandLine::ForCurrentProcess()->HasSwitch(kShowAppListStartPage); |
| +} |
| + |
| } // namespace switches |
| } // namespace app_list |