Views Omnibox: tolerate minor click-to-select-all dragging.
[chromium-blink-merge.git] / ui / app_list / app_list_switches.cc
blob6c9afb30bc11b77487712aade745718277f4767c
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"
9 namespace app_list {
10 namespace switches {
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);
26 #else
27 return false;
28 #endif
31 } // namespcae switches
32 } // namespace app_list