1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/app_list/app_list_switches.h"
7 #include "base/command_line.h"
12 // If set, folder will be enabled in app list UI.
13 const char kEnableFolderUI
[] = "enable-app-list-folder-ui";
15 // If set, the voice search is disabled in app list UI.
16 const char kDisableVoiceSearch
[] = "disable-app-list-voice-search";
18 bool IsFolderUIEnabled() {
19 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI
);
22 bool IsVoiceSearchEnabled() {
23 // Speech recognition in AppList is only for ChromeOS right now.
24 #if defined(OS_CHROMEOS)
25 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch
);
31 } // namespcae switches
32 } // namespace app_list