| 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 8244b4fa9cdf9afb8d2fb6ccdc12f8d32fd1c9b9..6c9afb30bc11b77487712aade745718277f4767c 100644
|
| --- a/ui/app_list/app_list_switches.cc
|
| +++ b/ui/app_list/app_list_switches.cc
|
| @@ -12,12 +12,21 @@ namespace switches {
|
| // If set, folder will be enabled in app list UI.
|
| const char kEnableFolderUI[] = "enable-app-list-folder-ui";
|
|
|
| -// If set, the voice search is enabled in app list UI.
|
| -const char kEnableVoiceSearch[] = "enable-app-list-voice-search";
|
| +// If set, the voice search is disabled in app list UI.
|
| +const char kDisableVoiceSearch[] = "disable-app-list-voice-search";
|
|
|
| bool IsFolderUIEnabled() {
|
| return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI);
|
| }
|
|
|
| +bool IsVoiceSearchEnabled() {
|
| + // Speech recognition in AppList is only for ChromeOS right now.
|
| +#if defined(OS_CHROMEOS)
|
| + return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch);
|
| +#else
|
| + return false;
|
| +#endif
|
| +}
|
| +
|
| } // namespcae switches
|
| } // namespace app_list
|
|
|